CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2001
    Posts
    745

    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

  2. #2
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    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
  •  





Click Here to Expand Forum to Full Width

Featured