|
-
May 14th, 2002, 04:25 AM
#1
Compiler setting
Hi,
What should I give & where should I give in the compiler settings of my project if Iam using some thing like this in my project and to make the contol go into these Definitions
#ifdef _LINUX_
// Add linux specific code to get the operating system
strOS = "Linux";
#endif
#ifdef _WIN_VER
// Add Windows specific code to get the operating system
#endif
Thanks
Kohinoor
-
May 14th, 2002, 01:03 PM
#2
Re: Compiler setting
I would pass it to the compiler directly.
In Linux
gcc -D_LINUX_ ...
In windows you need to go into the project settings and have it define _WIN_VER where appropriate.
Jared Parsons
Jared
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|