Thread: [Dev-C++] wxWindow again. Please help im going to be crazy!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Gametha <ga...@ya...> - 2003-03-02 09:55:07
|
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 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\include\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-Cpp\include\wx" -I"C:\prog\Dev-Cpp\include\wx\msw\gnuwin32" -L"C:\prog\Dev-Cpp\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++ built-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 define string case-insensitive compare for your OS/compiler" Execution terminated */\/\/\/\/\/\/\/\/\/\/\/\/\/\/\MY ERROR/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\* - When i use the options : compiler> -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ 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-exceptions -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++\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-Cpp\include\wx" -I"C:\prog\Dev-Cpp\include\wx\msw\gnuwin32" -lwxmsw -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:\prog\Dev-Cpp\bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw */\/\/\/\/\/\/\/\/\/\/\/\/\/\/\MY ERROR/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\* 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-exceptions -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++\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-Cpp\include\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):bombs1.cpp: undefined reference to `wxTheColourDatabase' . . . . C:\DOCUME~1\Gametha\CONFIG~1\Temp/ccE9taaa.o(.text$_ZN8wxObjectD0Ev+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 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ço de busca mais completo da Internet. O que você pensar o Yahoo! encontra. http://br.busca.yahoo.com/ |
|
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 > |
|
From: Michel W. <mic...@fr...> - 2003-03-02 18:35:47
Attachments:
bombs.dev
|
> > > > C:\prog\Dev-Cpp\bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw > */\/\/\/\/\/\/\/\/\/\/\/\/\/\/\MY ERROR/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\* > > the library is : libwxmswu.a You should use -lwxmswu. 'u' is for unicode... I'm french so unicode could be useful for me. <cid:par...@fr...> > > my bombs.dev file [Project] FileName=bombs.dev Name=bombs Ver=1 IsCpp=1 Type=0 Compiler= CppCompiler=-D_X86_=1 -DWIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -mthreads -DSTRICT -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions_@@_ Includes= Linker=-lwxmswu -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid _@@_ Libs= UnitCount=3 Folders= ObjFiles= PrivateResource= ResourceIncludes= MakeIncludes= Icon= ExeOutput= ObjectOutput= OverrideOutput=0 OverrideOutputName=bombs.exe HostApplication= CommandLine= IncludeVersionInfo=0 SupportXPThemes=0 CompilerSet=0 CompilerSettings=000000000000000000 [Unit1] FileName=bombs.cpp Folder= Compile=1 CompileCpp=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [Unit3] FileName=game.cpp Folder= Compile=1 CompileCpp=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [Unit4] FileName=game.cpp Folder= Compile=1 CompileCpp=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= [VersionInfo] Major=0 Minor=1 Release=1 Build=1 LanguageID=1033 CharsetID=1252 CompanyName= FileVersion=0.1 FileDescription=Developed using the Dev-C++ IDE InternalName= LegalCopyright= LegalTrademarks= OriginalFilename=bombs.exe ProductName=bombs ProductVersion=0.1 [Unit2] FileName=bombs1.cpp CompileCpp=1 Folder= Compile=1 Link=1 Priority=1000 OverrideBuildCmd=0 BuildCmd= |