Re: [gtkmm] Re: Building libsigc++ under Win32 for use with Intel C++ Compiler 6.0
- From: Dirk Gerrits <dirk gerrits homeip net>
- To: Cedric Gustin <cgustin ibelgique com>
- Cc: gtkmm-list gnome org, libsigc-mlist lists sourceforge net
- Subject: Re: [gtkmm] Re: Building libsigc++ under Win32 for use with Intel C++ Compiler 6.0
- Date: Wed, 06 Nov 2002 18:39:59 +0100
Cedric Gustin wrote:
> At 10:44 PM 11/5/2002 +0100, Dirk Gerrits wrote:
>
> > Dirk Gerrits wrote:
> >
> > I tried this test.cpp:
> >
> > #include
> >
> > int main(int argc, char *argv[])
> > {
> > Gtk::Main kit(argc, argv);
> >
> > Gtk::Window window;
> > Gtk::Main::run(window);
> >
> > return 0;
> > }
> >
> > and got:
> >
> > $ g++ test.cpp -o simple `pkg-config gtkmm-2.0 --cflags --libs`
> > test.cpp:11:2: warning: no newline at end of file
> > C:/cygwin/lib/libstdc++.a(vterminate.o)(.text+0xf1): undefined
> > reference to `_im
> > pure_ptr'
> > C:/cygwin/lib/libstdc++.a(vterminate.o)(.text+0x136): undefined
> > reference to `_i
> > mpure_ptr'
> > C:/cygwin/lib/libstdc++.a(cxa_demangle.o)(.text+0x4ae7): undefined
> > reference to
> > `_impure_ptr'
> > C:/cygwin/lib/libstdc++.a(cxa_demangle.o)(.text+0x4b0f): undefined
> > reference to
> > `_impure_ptr'
>
>
> You linked your program with the cygwin libstdc++ library instead of the
> mingw one. Check your PATH and make sure mingw comes first (gcc -v is
> your friend). Also, check the output of `pkg-config gtkmm-2.0 --cflags
> --libs`. Under cygwin bash, I usually mount the C:\MingW directory
> system-wide as /MingW (using mount -b -s) and try to avoid complex
> mounting points (like C:\cygwin\usr\local mounted as /usr/local).
>
> Cedric
>
My attempt at mounting /MinGW failed, so I just made a symbolic link. So
now /MinGW points to /cygdrive/c/MinGW. /MinGW/bin comes before
everything else in my PATH in /etc/profile.
$ gcc -v
Reading specs from c:/MinGW/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)
I think it wants to be friends with me. ;) It looks fine to me. Right?
$ `pkg-config gtkmm-2.0 --cflags --libs`
bash: -IC:/cygwin/include/gtkmm-2.0: No such file or directory
Ehh, not good. Why?
$ g++ test.cpp -o test `pkg-config gtkmm-2.0 --cflags --libs`
C:/cygwin/lib/libstdc++.a(vterminate.o)(.text+0xf1): undefined reference
to `_impure_ptr'
C:/cygwin/lib/libstdc++.a(vterminate.o)(.text+0x136): undefined
reference to `_impure_ptr'
C:/cygwin/lib/libstdc++.a(cxa_demangle.o)(.text+0x4ae7): undefined
reference to `_impure_ptr'
C:/cygwin/lib/libstdc++.a(cxa_demangle.o)(.text+0x4b0f): undefined
reference to `_impure_ptr'
Ok, still the same linking to the wrong stdlibc++ problem. /MinGW/bin is
really the very first thing in "echo $PATH".
Dirk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]