Jose's Read Only Forum 2023

IT-Consultant: Frederick J. Harris => PowerBASIC Programmer's Survival Guide To C And C++ => Topic started by: Heinz Grandjean on September 20, 2013, 09:09:11 AM

Title: Equivalent in C++ to PB #compile { "filename.exe/dll"}
Post by: Heinz Grandjean on September 20, 2013, 09:09:11 AM
Just another question and I hope I don't overstress your patience.

When I compile in MS C++ one of my test-DLLs the release is embedded in a bunch of files, normally in the Debug-folder.
What I need is to express a special target-folder for the DLL.
In PB we have the above mentioned compiler directive.
I checked out the C++ examples made by Patrice and Frederick(they are great),
but I was not able to find a hint concerning that question.

Heinz Grandjean

Title: Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
Post by: Patrice Terrier on September 20, 2013, 10:25:42 AM
No, the Debug folder is for debug purpose only, it produces much larger code that is not intended to be distributed.

You must compile in release mode once the code has been debugged, and distribute the realease EXE/DLL only!

...
Title: Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
Post by: Heinz Grandjean on September 20, 2013, 01:09:03 PM
Yes, thank You.
Fixed that.
But the question how to release the DLL into a user-defined folder is still there.
In PB this is extremely convenient.
Heinz Grandjean
Title: Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
Post by: Kev Peel on September 20, 2013, 02:02:56 PM
Project Properties > Release Configuration > Output Directory (and 'Target name')
Title: Re: Equivalent in C++ to PB #compile { "filename.exe/dll"}
Post by: Heinz Grandjean on September 20, 2013, 02:20:00 PM
Thank you,
Heinz Grandjean