Re: [Dev-C++] wxWindow again. Please help im going to be crazy!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-03-02 10:33:32
|
This isn't comparable to my installation but see below: /Per W On Sun, 2 Mar 2003, Gametha wrote: > Hello dev-cpp-users, > I think im a dumb or something like that! I read a lot of > documentation and i cant found a solution. > Let's start: > > I have > - Dev-cpp 4.9.7.6 with gcc3.2 > - Package WxWindows Development Kit (Build by Michel Weinachter) 2.4.0 > - Package Contribs (Build by Michel Weinachter) 2.4.0 > - Package Image libraries (Build by Michel Weinachter) 1.0.0 > - WxWindows_2_4_0 setup from zip file downloaded on wxwindows.org > > My dirs: > C:\prog\dev-cpp --> dev c++ instalation > C:\prog\wxdesigner --> wxdesigner instalation > C:\prog\wxWindows_2.4.0 --> wxWindows instalation > > My changes : > The path have : c:\prog\dev-cpp\bin > The environment variable (from control > pannel > system > advanced > environment variables applet) have > WXWIN C:\prog\Dev-Cpp\include\wx > > My dirs on dev c++ compiler options : > > Binaries: > C:\prog\Dev-Cpp\bin > > Libraries: > C:\prog\Dev-Cpp\lib > C:\prog\Dev-Cpp\include\wx\msw Where are you libwxmsw.a file? In one of the above two directories? The second one looks more like an include directory to me. Please notice difference between include files (*.h) for compilation, and library files (*.a) for linking. > > C Includes: > C:\prog\Dev-Cpp\include > > C++ Includes: > C:\prog\Dev-Cpp\include\c++ > C:\prog\Dev-Cpp\include > C:\prog\Dev-Cpp\include\c++\backward > C:\prog\Dev-Cpp\include\c++\bits > C:\prog\Dev-Cpp\include\c++\ext > C:\prog\Dev-Cpp\include\c++\mingw32 > C:\prog\Dev-Cpp\include\c++\mingw32\bits > C:\prog\Dev-Cpp\include\wx > C:\prog\Dev-Cpp\include\wx\msw\gnuwin32 > > My problem! > Im tryng to compile some example of wxwindows. The example is the > bombs1.cpp comming from WxWindows 2.4 (downloaded on > wxwindows.org). > > My errors: > > - When i compile withou adding commands on calling compiler and > linker: > Compiler: Default compiler > Executing g++.exe... > g++.exe "C:\prog\wxWindows_2.4.0\demos\bombs\bombs1.cpp" -o > "C:\prog\wxWindows_2.4.0\demos\bombs\bombs1.exe" > -I"C:\prog\Dev-Cpp\include\c++" -I"C:\prog\Dev-Cpp\include" > -I"C:\prog\Dev-Cpp\include\c++\backward" -I"C:\prog\Dev-Cpp\in= clude\c++\bits" > -I"C:\prog\Dev-Cpp\include\c++\ext" -I"C:\prog\Dev-Cpp\include= \c++\mingw32" > -I"C:\prog\Dev-Cpp\include\c++\mingw32\bits" -I"C:\prog\Dev-Cp= p\include\wx" > -I"C:\prog\Dev-Cpp\include\wx\msw\gnuwin32" -L"C:\prog\Dev-Cp= p\lib" -L"C:\prog\Dev-Cpp\include\wx\msw" > > In file included from C:/prog/Dev-Cpp/include/wx/wxprec.h:13, > from C:/prog/wxWindows_2.4.0/demos/bombs/bombs1.cpp:21: > C:/prog/Dev-Cpp/include/wx/defs.h:174: redeclaration of C++ bui= lt-in type `bool' > In file included from C:/prog/Dev-Cpp/include/wx/memory.h:20, > from C:/prog/Dev-Cpp/include/wx/object.h:25, > from C:/prog/Dev-Cpp/include/wx/wx.h:16, > from C:/prog/wxWindows_2.4.0/demos/bombs/bombs1.cpp:24: > C:/prog/Dev-Cpp/include/wx/string.h:164:4: #error "Please defin= e string case-insensitive compare for your OS/compiler" > Execution terminated */\/\/\/\/\/\/\/\/\/= \/\/\/\/\/\MY ERROR/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\* You haven't defined what kind of compiler you are using. Make sure to define _D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ for your compiler. The line you have below, i.e. -fno-rtti... is what you should have for compilation. > > - When i use the options : compiler> -fno-rtti -fno-exceptions -fno-= pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WI= N95__ > linker> -lwxmsw -lole32 -lwsock32 -lcomctl32 -lctl3d32 -lgcc -lstdc+= + -lshell32 -loleaut32 -ladvapi32 -luuid > > Compiler: Default compiler > Executing g++.exe... > g++.exe "C:\prog\wxWindows_2.4.0\demos\bombs\bombs1.cpp" -o = "C:\prog\wxWindows_2.4.0\demos\bombs\bombs1.exe" -fno-rtti -fno-exception= s -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__= -D__WIN95__ -I"C:\prog\Dev-Cpp\include\c++" -I"C:\prog\Dev-Cpp\include" = -I"C:\prog\Dev-Cpp\include\c++\backward" -I"C:\prog\Dev-Cpp\include\c++\b= its" -I"C:\prog\Dev-Cpp\include\c++\ext" -I"C:\prog\Dev-Cpp\include\c++\m= ingw32" -I"C:\prog\Dev-Cpp\include\c++\mingw32\bits" -I"C:\prog\Dev-Cpp\i= nclude\wx" -I"C:\prog\Dev-Cpp\include\wx\msw\gnuwin32" -lwxmsw -lole32 -l= wsock32 -lcomctl32 -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32= -luuid -L"C:\prog\Dev-Cpp\lib" -L"C:\prog\Dev-Cpp\include\wx\msw" > > C:\prog\Dev-Cpp\bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\m= ingw32\bin\ld.exe: cannot find -lwxmsw > */\/\/\/\/\/\/\/\/\/\/\/\/\/\/\MY ERROR/\/\/\/\/\/\/\/\/\/\/= \/\/\/\/\/\* You haven't specified a library path to your libwxmsw.a file. It's not in the two directories you specified for libraries. Or, it might be called something else. Check your disk for any libwx* files. Some versions of wxWindows called it just libwx.a. > > Execution terminated > > - When dont put the -lwxmsw option: > > Compiler: Default compiler > Executing g++.exe... > g++.exe "C:\prog\wxWindows_2.4.0\demos\bombs\bombs1.cpp" -o = "C:\prog\wxWindows_2.4.0\demos\bombs\bombs1.exe" -fno-rtti -fno-exception= s -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__= -D__WIN95__ -I"C:\prog\Dev-Cpp\include\c++" -I"C:\prog\Dev-Cpp\include" = -I"C:\prog\Dev-Cpp\include\c++\backward" -I"C:\prog\Dev-Cpp\include\c++\b= its" -I"C:\prog\Dev-Cpp\include\c++\ext" -I"C:\prog\Dev-Cpp\include\c++\m= ingw32" -I"C:\prog\Dev-Cpp\include\c++\mingw32\bits" -I"C:\prog\Dev-Cpp\i= nclude\wx" -I"C:\prog\Dev-Cpp\include\wx\msw\gnuwin32" -lole32 -lwsock32 = -lcomctl32 -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid = -L"C:\prog\Dev-Cpp\lib" -L"C:\prog\Dev-Cpp\include\wx\msw" > C:\DOCUME~1\Gametha\CONFIG~1\Temp/ccE9taaa.o(.text+0x6e):bom= bs1.cpp: undefined reference to `wxTheColourDatabase' > . > . > . > . > C:\DOCUME~1\Gametha\CONFIG~1\Temp/ccE9taaa.o(.text$_ZN8wxObj= ectD0Ev+0x16):bombs1.cpp: undefined reference to `wxObject::UnRef()' > > C:\prog\Dev-Cpp\lib/libmingw32.a(main.o)(.text+0x7f):main.c:= undefined reference to `WinMain@16' > > Execution terminated No use trying to build a wxWindows application without specifying the -lwxmsw option, since that's the wxWindows base functionallity you control with this switch, i.e. that your application needs the wxWindows library. > > > Please guys i need help. I dont know what to do now. Im a newbie with > c++ and dont know some concepts. Im triyng to beggin but if i cant > compile a simple hellow-world-like program i dont want to go foward! > :( > Sorry about the size of mail. I have read the forums and some messages > are better to undearstand and that messages have more information then > others. tks all. > > -- > Best regards, > Gametha mailto:ga...@ya... > > _______________________________________________________________________ > Busca Yahoo! > O servi=E7o de busca mais completo da Internet. O que voc=EA pensar o Yah= oo! encontra. > http://br.busca.yahoo.com/ > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |