From: Luke D. <cod...@ho...> - 2003-09-10 12:45:01
|
This is a Dev-C++ issue so you should ask them for support. It looks like you put the link options in the wrong place, because the first command below is for compiling and should not have libraries specified, and the second command has the libraries in the wrong order (-lstdc++ must appear after user libraries like -lgxcode, though it doesn't need to be specified at all because "g++" does it for you). If you want to ask a similar question in future then first try doing it with the command line so that it eliminates Dev-C++ as the cause. Luke ----- Original Message ----- From: <lx...@fr...> To: <min...@li...> Sent: Wednesday, September 10, 2003 7:45 PM Subject: [Mingw-users] datareel 4.2.1 Dear All, I try to compile DateReel library to use it under Windows2k. I compiled it and I got a libgxcode.a file under winslib directory. Thats ok. After that I thought, I try to compile examples. Here I failed. Nowhere mingw.mak or similar makefile. Under msys, I failed. In fact, I would like to use it under Dev-cpp. What I did: I copied the library and include files to related directories. After that, I tried to compile gsxcomm1 with dev-cpp. I got the following error messages: Fordító: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Finding dependencies for file: C:\Dev-Cpp\main.cpp make... indítása. make.exe -f "C:\Dev-Cpp\Makefile.win" all g++.exe -c main.cpp -o ain.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/ Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"./include" -I"C:/ Dev-Cpp/include/dreel" -lgxcode -lstdc++ -lsupc++ -lbgi In file included from C:/Dev-Cpp/include/c++/backward/iostream.h:31, from main.cpp:40: C:/Dev-Cpp/include/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. g++.exe: -lgxcode: linker input file unused because linking not done g++.exe: -lstdc++: linker input file unused because linking not done g++.exe: -lsupc++: linker input file unused because linking not done g++.exe: -lbgi: linker input file unused because linking not done g++.exe main.o -o "Projekt1.exe" -L"C:/Dev-Cpp/lib" -lstdc++ -lsupc++ -lbgi -lgxcode C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x198e):dfileb.cpp: undefined reference to `__gxx_personality_sj0' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x19bd):dfileb.cpp: undefined reference to `_Unwind_SjLj_Register' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x1cbc):dfileb.cpp: undefined reference to `_Unwind_SjLj_Resume' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x1ccb):dfileb.cpp: undefined reference to `_Unwind_SjLj_Unregister' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2068):dfileb.cpp: undefined reference to `__gxx_personality_sj0' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2097):dfileb.cpp: undefined reference to `_Unwind_SjLj_Register' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2246):dfileb.cpp: undefined reference to `_Unwind_SjLj_Resume' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x233b):dfileb.cpp: undefined reference to `_Unwind_SjLj_Unregister' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2366):dfileb.cpp: undefined reference to `__gxx_personality_sj0' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2395):dfileb.cpp: undefined reference to `_Unwind_SjLj_Register' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2544):dfileb.cpp: undefined reference to `_Unwind_SjLj_Resume' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2639):dfileb.cpp: undefined reference to `_Unwind_SjLj_Unregister' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x2660):dfileb.cpp: undefined reference to `__gxx_personality_sj0' C:/Dev-Cpp/lib/libgxcode.a(dfileb.o)(.text+0x268f):dfileb.cpp: undefined reference to `_Unwind_SjLj_Register' and so on......... Can anybody help with solution or advices or tips? Thank you! István ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ MinGW-users mailing list Min...@li... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |