How do you add a build time define?

Building, compiling, or debugging issues

How do you add a build time define?

Postby Dralt » Fri Aug 19, 2005 7:45 pm

You know, with gcc, you can use the -D flag to add a define...but how do you do that in UEStudio?

The interface to the compiler is cool, but the documentation is way to sparse...

How do I get the equivalent of -Wall?
How do I specify include paths? (-I)
How do I specify library paths? (-L)
Etc.

There is a lot of guessing to do right now.
Dralt
 

Re: How do you add a build time define?

Postby bobh » Fri Aug 19, 2005 8:12 pm

"How do I get the equivalent of -Wall?"

After you have specified MinGW as the compiler to use, and the appropriate platform (i.e. Windows application, console app, DLL, etc.) you will need to:

(a) Select "Build->Select compiler" and click on the "Edit configuration" button AFTER you have chosen "MinGW" from the list;

(b) There are several -W options to choose from, unfortunately -Wall is not among those. Look at how the other -W... options are handled and act accordingly.

Unfortunately, this is what happens when you try to define a universal interface for a virtually unlimited number of compilers. I personally think there would be a better design with XML configuration files, but the choice was made to use a prehistoric key/value (Windows INI-type) of configuration. :?
User avatar
bobh
Advanced User
Advanced User
 
Posts: 59
Joined: Tue Dec 28, 2004 12:00 am

Re: How do you add a build time define?

Postby Guest » Fri Aug 19, 2005 9:12 pm

Thanks, Bob.

I agree with you. Ian and co. are bitting into a gigantic piece of work with that one.
Guest
 


Return to Build / Compile / Debug