Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to define MSWIN (http://www.go4expert.com/forums/define-mswin-t15979/)

ceal21c 29Jan2009 01:10

How to define MSWIN
 
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.

xpi0t0s 29Jan2009 15:07

Re: How to define MSWIN
 
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.


All times are GMT +5.5. The time now is 22:41.