|
|
#1 |
|
Banned
Join Date: Aug 2006
Reputation: 0
Posts: 27
|
how can i change the output file using the cpp #pragma or other things ??
eg. Code:
#define CHANENAME #ifdef CHANENAME #define FILENAME "plugin_new" // code to set output file name (/OUT) #else #define FILENAME "plugin" // code to set output file name (/OUT) #endif |
|
|
|
|
|
#2 |
![]() Join Date: Sep 2006
Reputation: 9
Posts: 2,691
|
What are you trying to do? Change the output filename? say change server.dll to custommod.dll?
You cna do that in the Projects properties, right click your project, properties, General (Or C++) and go to Output. |
|
|
|
|
|
#3 | |
|
Banned
Join Date: Aug 2006
Reputation: 0
Posts: 27
|
Quote:
change from VPS to MM names because my plugin require names because im exporting things and this need the dll with rigth name |
|
|
|
|
|
|
#4 |
![]() Join Date: Sep 2006
Reputation: 9
Posts: 2,691
|
I dont get what you are trying to do... Are you trying to get some cpp files to compile into their own dll?
|
|
|
|
|
|
#5 |
|
Banned
Join Date: Aug 2006
Reputation: 0
Posts: 27
|
|
|
|
|
|
|
#6 |
![]() Join Date: Sep 2006
Reputation: 9
Posts: 2,691
|
But what would that achieve? Changing it in the properties is the right way to do it, there will be other options for what you want to do in there also...
|
|
|
|
|
|
#7 | |
|
Banned
Join Date: Aug 2006
Reputation: 0
Posts: 27
|
Quote:
i have tryed : #pragma comment(linker, "/OUT:\"Release/win32/sourceutils.dll\"") but dont work |
|
|
|
|
|
|
#8 |
![]() Join Date: Sep 2006
Reputation: 9
Posts: 2,691
|
Hmm... i think i get what you mean (If something is defined then output one file, if another, output another).
|
|
|
|
|
|
#9 |
|
Banned
Join Date: Aug 2006
Reputation: 0
Posts: 27
|
|
|
|
|
|
|
#10 |
|
Guest
Posts: n/a
|
Maybe you can just add a building profile in Visual Studio, and dunno why #pragma comment won't work
|
|
|
|
#11 |
|
Banned
Join Date: Aug 2006
Reputation: 0
Posts: 27
|
|
|
|
|
|
|
#12 |
|
Guest
Posts: n/a
|
I tried the #pragma method on my machine, it just gave out a warning, but the output was a wrong file
Last edited by softboysxp: 05-31-2007 at 08:34 AM. |
|
|
|
#13 |
|
Banned
Join Date: Aug 2006
Reputation: 0
Posts: 27
|
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|