This is the mail archive of the cygwin@sourceware.cygnus.com 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]

[Q]STL vector with -mno-cygwin


Hello everyone.I'm a cygwin beginner. With old cygwin(b20.1),we must specify extra include(-I) or library(-L) path with -mno-cygwin flag. http://sourceware.cygnus.com/ml/cygwin/2000-06/msg00938.html Recentry in above article,I see following sentence. - No more "impure_ptr" errors when compiling with -mno-cygwin. (After exhaustive debugging) So, I got latest net release and I tried to compile ---------------------------------- #include <vector> int main(int argc,char** argv){ vector<int> vec; vec.push_back(); } ---------------------------------- g++ -mno-cygwin foo.cc But,I get following error messages. ------------------------------------------- /usr/lib/libstdc++.a(iostream.o): In function `skip_ws(streambuf *)': /cygnus/netrel/src/gcc-2.95.2-2/libio/iostream.cc:66: undefined reference to `_imp___ctype_' /usr/lib/libstdc++.a(iostream.o): In function `istream::_rs(char *)': /cygnus/netrel/src/gcc-2.95.2-2/libio/iostream.cc:231: undefined reference to `_imp___ctype_' /usr/lib/libstdc++.a(iostream.o): In function `ostream::do_osfx(void)': /cygnus/netrel/src/gcc-2.95.2-2/libio/iostream.cc:1009: undefined reference to `_impure_ptr' /cygnus/netrel/src/gcc-2.95.2-2/libio/iostream.cc:1010: undefined reference to `_impure_ptr' /usr/lib/libstdc++.a(streambuf.o): In function `streambuf::sys_stat(void *)': /cygnus/netrel/src/gcc-2.95.2-2/libio/streambuf.cc:282: undefined reference to `__errno' /usr/lib/libstdc++.a(stdstrbufs.o): In function `_tf11_ios_fields': /cygnus/netrel/src/gcc-2.95.2-2/libio/stdstrbufs.cc:123: undefined reference to `_impure_ptr' /usr/lib/libstdc++.a(iovfscanf.o)(.text+0x60):iovfscanf.c: undefined reference to `_imp___ctype_' /usr/lib/libstdc++.a(iovfscanf.o)(.text+0x8d):iovfscanf.c: undefined reference to `_imp___ctype_' /usr/lib/libstdc++.a(iovfscanf.o)(.text+0x584):iovfscanf.c: undefined reference to `_imp___ctype_' /usr/lib/libstdc++.a(iovfscanf.o)(.text+0x5d1):iovfscanf.c: undefined reference to `_imp___ctype_' /usr/lib/libstdc++.a(iovfscanf.o)(.text+0x85c):iovfscanf.c: undefined reference to `_imp___ctype_' /usr/lib/libstdc++.a(iovfscanf.o)(.text+0x8b4):iovfscanf.c: more undefined references to `_imp___ctype_' follow /usr/lib/libstdc++.a(fileops.o)(.text+0x194):fileops.c: undefined reference to `__errno' /usr/lib/libstdc++.a(fileops.o)(.text+0x206):fileops.c: undefined reference to `__errno' /usr/lib/libstdc++.a(fileops.o)(.text+0x261):fileops.c: undefined reference to `__errno' /usr/lib/libstdc++.a(fileops.o)(.text+0x390):fileops.c: undefined reference to `__errno' /usr/lib/libstdc++.a(fileops.o)(.text+0x459):fileops.c: undefined reference to `__errno' /usr/lib/libstdc++.a(fileops.o)(.text+0x5b1):fileops.c: more undefined references to `__errno' follow /usr/lib/libstdc++.a(floatconv.o)(.text+0x1273):floatconv.c: undefined reference to `__infinity' /usr/lib/libstdc++.a(floatconv.o)(.text+0x13cd):floatconv.c: undefined reference to `__errno' collect2: ld returned 1 exit status ------------------------------------------- I'm misunderstanding? What should I do any other? Please help... cygcheck -s -r Cygnus Win95/NT Configuration Diagnostics Current System Time: Sun Jun 25 03:31:33 2000 Win9X Ver 4.10 build 67766222 Path: /usr/bin /USR/LOCAL/BIN /MYPROG/WIN95/MULE2/BIN /PERL/BIN /WINDOWS /WINDOWS/COMMAND /PROGRA~1/WIN98RK /CYGNUS/CYGWIN-B20/H-I586-CYGWIN32/BIN /USR/LOCAL/BIN SysDir: C:\WINDOWS\SYSTEM WinDir: C:\WINDOWS MAKE_MODE = `unix' PWD = `/tmp' HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Program(&P)\Cygnus Solutions HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Program(&P)\Cygnus Solutions\Menu (default) = (unsupported type) HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 (default) = `C:' unix = `/' fbinary = 0x00000000 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000020 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `c:\' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `c:\bin' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `c:\lib' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\Software\Cygnus Solutions HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\GNUPro HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\GNUPro\i586-cygwin32 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Installed Components HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Installed Components\c:/ (default) = `0002.0095.0002.0002' binutils = `19990818.0002' ash = `20000517' bash = `0002.0004.0001' bison = `0000' byacc = `0000' bzip = `0000' clear = `0001.0000' crypt = `0001.0000' cygwin = `0001.0001.0002' dejagnu = `0000' diff = `0000' expect = `0000' fileutils = `0000' findutils = `0000' flex = `0000' gawk = `0000' gdb = `20000610' gperf = `0000' grep = `0000' groff = `0001.011a.0001' gzip = `0000' inetutils = `0001.0003.0002.0004' less = `0000' libpng = `0001.0000.0006.0001' login = `0001.0003' m = `0000' make = `0003.0079.0001' man = `0001.005g.0002' opengl = `0001.0002.0001.0001' patch = `0000' sed = `0003.0002.0001' shellutils = `0000' tar = `0000' tcltk = `20000610' termcap = `20000618.0001' texinfo = `0000' textutils = `0000' time = `0000' zlib = `0001.0001.0003.0001' a: fd N/A N/A c: hd FAT32 6263Mb 84% CP UN d: cd N/A N/A e: cd N/A N/A c:\bin /usr/bin user binmode c:\lib /usr/lib user binmode c: / user binmode Found: c:\bin\bash.exe Found: \bin\bash.exe Found: c:\bin\cat.exe Found: \bin\cat.exe Found: c:\bin\cpp.exe Found: \bin\cpp.exe Found: c:\bin\find.exe Found: c:\WINDOWS\COMMAND\find.exe Found: \bin\find.exe Found: c:\bin\gcc.exe Found: \bin\gcc.exe Found: c:\bin\gdb.exe Found: \bin\gdb.exe Found: c:\bin\ld.exe Found: \bin\ld.exe Found: c:\bin\ls.exe Found: \bin\ls.exe Found: c:\bin\make.exe Found: \bin\make.exe Found: c:\bin\sh.exe Found: \bin\sh.exe 575k 2000/06/07 c:\bin\cygwin1.dll 83k 2000/06/11 c:\bin\cygitcl30.dll 35k 2000/06/11 c:\bin\cygitk30.dll 402k 2000/06/11 c:\bin\cygtcl80.dll 5k 2000/06/11 c:\bin\cygtclpip80.dll 10k 2000/06/11 c:\bin\cygtclreg80.dll 639k 2000/06/11 c:\bin\cygtk80.dll 575k 2000/06/07 \bin\cygwin1.dll 83k 2000/06/11 \bin\cygitcl30.dll 35k 2000/06/11 \bin\cygitk30.dll 402k 2000/06/11 \bin\cygtcl80.dll 5k 2000/06/11 \bin\cygtclpip80.dll 10k 2000/06/11 \bin\cygtclreg80.dll 639k 2000/06/11 \bin\cygtk80.dll Use -h to see help about each section -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]