Re: [Dev-C++] using the Mingw compiler as a command line tool
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elias P. <eli...@ao...> - 2001-06-09 12:29:01
|
> I decided to work around this by using directly the Mingw compiler. > To start, I looked at the file produced by Dev when you ask to generate the > makefile and I have some questions: > - has a DOS command line (Win 98 - DOS box) any max length (in old DOS there > was a 128 char limit)? AFAICT there is no limit. I'm also using makefiles from a DOS-Box, and it's no problem to give several 100 filenames to gcc. > - does gcc have anyhing like the "response file" of bcc32? I'm not completely sure what that is, but if you need it to store options, you can just use a makefile. A description of all the gcc options can be found at: http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_2.html#SEC3 Which is part of some more docs (including make): http://www.gnu.org/manual/manual.html > - when developing a console mode application, do I need to link rsrc.o? No, and you also don't need any special libraries. gcc myprogram.o -o myprogram.exe should be all you need to link a console object file to the .exe. Normally you will also want to use at least the -O3 (turn on optimizations) and -s (strip debugging info) options. Note, if you are compiling C++ (not plain C), you can always replace gcc with g++ so it automatically uses the additional options and libraries. Elias Pschernig |