Generally, you use a prefix file, which is just a .h file that is automatically included in every project prior to any lines being compiled. Look in the project settings on the C/C++ settings panel.
One of the tricks is to create a precompiled header by putting a .h file in your project with an extension of .pch. Then, on the first line, use the following pragma #pragma precompile_target "MyHeaders.mch" Then, include MyHeaders.mch in the C/C++ settings panel. If you have a lot of common headers, like the PalmOS headers, you can drastically reduce your build times. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jennifer Fell > Sent: Thursday, March 17, 2005 11:02 AM > To: Palm Developer Forum > Subject: Stupid newbie question about Code warrior > > Hello, > > I wonder if there is any way to add some preprocessor > defintions somewhere on the project setting in CodeWarrior > (just like we can do in Visual Studio). > > I am having linking problem due to that fact. What is the > easiest way to work around it? Thansk a lot. > > Regards, > Jenni > > -- > For information on using the Palm Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/