How to define MSWIN

Discussion in 'C' started by ceal21c, Jan 28, 2009.

  1. ceal21c

    ceal21c New Member

    Joined:
    Jan 28, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hello All,

    My name is Jason Woodside. I am new to this site and new to C\C++. Thank you for having me!

    I am experimenting with C\C++ in particular "Blaze C" and trying to program a handheld PC. I'm receiving compile errors when using header files whose functions are wrapped in extern "C". I was told by the developer of the header files that I must define MSWIN, MSWIN32 and MSWINDLL in my environment in order to make the symbols expand correctly. Hmm. Does anyone know what that means and how I should go about actually doing that?

    Thank you for your support.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    He means you need to define the symbols. In some compilers that refers to the -D option, for example -DMSWIN would define MSWIN, so that the code "#ifdef MSWIN" would evaluate TRUE. You'll need to check the compiler documentation for how to define symbols at the command line.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice