1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,012
    Likes Received:
    203
    Trophy Points:
    0
    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