Re: [Dev-C++] How to switch to the Cygwin Compiler?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luigi S. <gi...@li...> - 2002-01-11 22:38:24
|
I don't have all the answers for your questions, but I have this one: the function "itoa" is not an ANSI C89 function, so it should not be in the standard header file "stdlib.h". At 17:25 10/01/02 +0100, you wrote: >Hi folks, > >Upon some trouble with the mingw compiler I want to switch to the cygwin >compiler like the 'Mingw and Cygwin.txt' says I added some variable >settings to my 'autoexec.bat'. > >The paths mentioned in the 'Mingw and Cygwin.txt' differ from those on my >system so I tried a most recent matching (or that what I think that is). > >Min and Cygwin.txt: >-------------------- > SET PATH=C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;%PATH% > SET C_INCLUDE_PATH=C:\cygnus\cygwin-b20\include > SET > CPP_INCLUDE_PATH=C:\cygnus\cygwin-b20\include\g++;C:\cygnus\cygwin-b20\include > SET LIBRARY_PATH=C:\cygnus\cygwin-b20\H-i586-cygwin32\i586-cygwin32\lib > SET GCC_EXEC_PREFIX=C:\cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib > >Used substitudes in my 'autoexec.bat': >------------------------------------ > REM ***************************************** > REM Added to use cygwin Compiler with Dev-C++ > REM ***************************************** > REM these can also be edited by Compiler options from Dev-C++ IDE > SET PATH=C:\cygwin\bin\;%PATH% > SET C_INCLUDE_PATH=C:\cygwin\usr\include\;C:\cygwin\usr\include\w32api\ > SET > CPP_INCLUDE_PATH=C:\cygwin\usr\include\g++-3\;C:\cygwin\usr\include;C:\cygwin\usr\include\w32api\ > SET LIBRARY_PATH=C:\cygwin\lib\;C:\cygwin\lib\w32api\ > > REM this can't be edited by Compiler options from Dev-C++ IDE > SET GCC_EXEC_PREFIX=C:\cygwin\lib\gcc-lib\i686-pc-cygwin\2.95.3-5\include > > >**************************************************************** > >Most of my programms can be compiled but two exceptions: >1) The funktion 'itoa(...)' isn't declared, > in the header file 'stdlib.h' like I expected it > => As far as I know 'stdlib.h' belongs to ANSI-C standard, so > why 'itoa(...)' isn't declared in here? > => Where do I find the correct header? > => Which path (s. above) do I have to change in my 'autoexec.bat'? > >2) After compiling nad linkting a Windows programm I get > this warning: >/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: >warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000 > The default setting seems to be OK, because the programm runs. > => What have I to do to get rid of this warning? > >**************************************************************** > >CU > Gregor (pe...@in...) > > > > > > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users -- gisan gi...@li... |