[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/ |