Re: Questions I should have asked



Hi Alf,

C:\dev>\dev-c++\bin\pkg-config --cflags gtk+-2.0
-IC:/dev-c++/include/gtk-2.0 -IC:/dev-c++/lib/gtk-2.0/include -IC:/dev-c++/inclu de/atk-1.0 -IC:/dev-c++/include/pango-1.0 -IC:/dev-c++/include/glib-2.0 -IC:/dev
-c++/lib/glib-2.0/include

C:\dev>\dev-cpp\bin\gcc -v
Reading specs from /dev-cpp/bin/../lib/gcc-lib/mingw32/3.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host= mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)

C:\dev>\dev-cpp\bin\gcc -c -Wall -mno-cygwin -mms-bitfields -O2 `\dev-c++\bin\pk
g-config --cflags gtk+-2.0` hello.cpp -o hello.o
gcc: cannot specify -o with -c or -S and multiple compilations

It also makes no difference if I use gcc or g++ to compile.
I suspect that we are using different versions of gcc which could well explain
my problems/oppertunities/challenges.
What version are you on?

My gcc -v  returns:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /GCC/gcc-3.3.1-3/configure ........

which is a different version, however my Makefile did work with earlier versions of gcc, so I don't think that the version is the problem. Looking at the result of
your gcc -v, I would guess that you are running the MingW tools, not Cygwin.
Perhaps you could try removing the -mno-cygwin from the command line.

Personally I don't see the point of using MingW, using Cygwin with -mno-cygwin
gives one a similar stand alone windows executable.
If you have Cygwin installed, open up a Cygwin bash shell, (not a DOS) shell,
and try the gcc ... command again.
regards,
Clive






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]