Re: [Dev-C++] Thanks and Another question (windows/linux)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2003-08-04 12:54:01
|
Pukara Rob wrote: > By the way, about the stdio.h file. I think it is pretty neccessary so I > am wondering why these guys chose to leave it out? Has any one of you > worked with Visual C++? Is there a replacemente for the standard stdio.h > there? I asked because the Aria guys provided some project files for VC > but since I work with DevC++... > > About the .. > > #ifdef SOMETHING > ....... > #endif > > how do I define and undefine something from the compiling environment. I > am trying to force it compile because I have lost too much time already. > > By the way ARIA is the name of a control system for Pioneer robots. VC++ project files have nothing to do with includes, as they don't contain any. They may only contain defines, but they are imported by dev anyway (I assume, that you used the import function of dev, no?). I think, that the stdio.h file is the same in Dev-C++ (well, actually in MinGW) and both in VC++. So I really don't know what and why have they done. To define something globally, through the environment, you need to pass a flag to the compiler. It has the form: -DSOMETHING This will define SOMETHING for the currently compiled file. Add -DWHAT_YOU_WANT to the compiler flags in the Project options -> Parameters -> Compiler or C++ compiler. I hope this helps. Good luck! -- Greetings, Balázs |