This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: _imp__cerr undefined reference / mingw32

You'd better ask the Mingw people this kind of questions.
Maybe adding -lmsvcprt (C++ runtime library) helps.


> -----Original Message-----
> From: Rob Snell []
> Sent: Donnerstag, 5. April 2001 13:56
> To:
> Subject: _imp__cerr undefined reference / mingw32
> Hi
> I'm trying to build the aspell package using the latest versions of 
> cygwin and gcc provided with mingw32. 
> The whole package builds...until the very end at the final link where
> I get this error:
> make[2]: Entering directory `/home/rob/aspell-.33/src'
> /bin/sh ../libtool --mode=link E:/mingw32/bin/g++  -g -O2  -o 
> aspell.exe
> aspell.o termios.o ../lib/ E:/mingw32/bin/g++ -g -O2 -o
> aspell.exe aspell.o termios.o ../lib/.libs/libaspell.a 
> -LE:\mingw32\bin\..\lib\gcc-lib\mingw32\2.95.2 
> -LE:\mingw32\bin\..\lib\gcc-lib -LE:\mingw32\lib
> -LE:\mingw32\bin\..\lib\gcc-lib\mingw32\2.95.2\..\..\..\..\mingw32\lib
> -LE:\mingw32\bin\..\lib\gcc-lib\mingw32\2.95.2\..\..\.. -LE:/aspell/
> lib E:/aspell/lib/libpspell-impl.a E:/aspell/lib/libpspell.a 
> E:/aspell/lib/libltdl-3.dll E:/aspell/lib/libpspell-modules.a 
> -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname 
> -lmsvcrt -lstdc++ -Wl,--rpath -Wl,E:/aspell/lib -Wl,--rpath 
> -Wl,E:/aspell/lib
> aspell.o(.text+0x6ca): undefined reference to `_imp__cerr'
> aspell.o(.text+0x803): undefined reference to `_imp__cerr'
> aspell.o(.text+0x8d0): undefined reference to `_imp__cerr'
> aspell.o(.text+0xed0): undefined reference to `_imp__cerr'
> aspell.o(.text+0x1251): undefined reference to `_imp__cerr'
> aspell.o(.text+0x130f): more undefined references to 
> `_imp__cerr' follow
> aspell.o(.text+0x1b6a): undefined reference to `_imp__cin'
> aspell.o(.text+0x1b74): undefined reference to `_imp__cin'
> ...and it goes on. This is extremely frustrating, I've tried 
> every trick
> in the book that I know and I cannot see why it fails to link 
> against the
> MS libraries correctly, everything else seems
> to work. I've had a good look thru the archives and found nothing
> conclusive that addresses this issue. Can someone help?
> Thanks,
> 	Rob.
> --
> Want to unsubscribe from this list?
> Check out:

Want to unsubscribe from this list?
Check out:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]