Thread: [Dev-C++] Re: DevC++ & wxWindows
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Marshall B. <mlb...@ho...> - 2002-12-30 01:03:54
|
"Goran Kavrecic" <go...@em...> wrote: >Anyone has some idea or procedure how to install and setup DevC++ 4(preferably 5) in order to work with wxW? > Hi Goran, After many hours of frustration I've come to the conclusion that the default wxWindows 2.2.9 package will not work with Dev-C++ 4.7.9.x/gcc 3.2. I believe you have two choices: 1) Use Dev-C++ 4.7.9.x/gcc 2.9.5. A fresh installation will allow for a build of the provided example. Should you install the upgrade for v4.7.9.1, be sure to copy and paste the "Compiler" flags to the "C++ compiler" list box (under Project Options->Compiler->Compiler Options). 2) If you want to use the gcc 3.2 version, I could find only one solution: build a new wxWindows lib from the source provided at the official wxWindows web site (located at http://www.wxwindows.org/dl_msw2.htm). This was actually a frighteningly straight-forward procedure, except that that a debug build of the library will not work -- an executable linked against such will report a library mismatch. I used the 2.3.4 snapshot and built a Unicode release-level static lib and all appears well. Be sure to remove the existing wxWindows package and perhaps even the "Image Library" package as the wxWindows source includes that for libpng, libjpeg, libtiff, and libzlib. Otherwise, watch out for lib conflicts... In addition, you'll have to perform the aforementioned compiler flag copy. Good luck to you. If you need any further help, I'll be happy to provide it. Regards, Marshall |
|
From: Marshall B. <mlb...@ho...> - 2002-12-30 01:47:45
|
My apologies. I wrote: >> a debug build of the library will not work -- an executable linked against such will report a library mismatch.. Adding the compiler option "-D__WXDEBUG__" to the application solves the problem when linking to a debug build of the wxWindows lib. Regards, Marshall |
|
From: Goran K. <go...@vo...> - 2002-12-30 10:37:09
|
Thanks, I decided for the first option because I have no preferrence regarding the compiler. I also thank Yeoh for his help in a direct mail. I made it to compile an empty project. It stopped again when I tried to compile thewxWindows samples. I imported the MS VC Realease project of some of them but failed to link "libz". I've got a "libzlib.a" from DevC++4(just for a try), but got unlninked functions (part follows): C:/IDE/DEVCPP5/lib/libwx.a(app.o)(.text+0x447): undefined reference to `InitCommonControls@0' C:/IDE/DEVCPP5/lib/libwx.a(app.o)(.text+0x451): undefined reference to `OleInitialize@4' C:/IDE/DEVCPP5/lib/libwx.a(app.o)(.text+0x102a): undefined reference to `OleUninitialize@0' C:/IDE/DEVCPP5/lib/libwx.a(statbr95.o)(.text+0x3ee): undefined reference to `CreateStatusWindowA@16' C:/IDE/DEVCPP5/lib/libwx.a(utils.o)(.text+0x31e): undefined reference to `WSAStartup@8' C:/IDE/DEVCPP5/lib/libwx.a(utils.o)(.text+0x348): undefined reference to `gethostname@8' etc... I probably have to link some windows specific lib. Which? I found it strange that didn't found resources defined in wx/msw/wx.rc I defined an prolog to absolute folder location for every resource and now it works. Shouldn't it get it from the include folders list? I also upgraded to 4.7.9.1 and found some new GUI bugs there. Does it have some side effects on compiling/linking, too? Regards, Goran ----- Original Message ----- From: Marshall Brewton <mlb...@ho...> To: <dev...@li...> Sent: Monday, December 30, 2002 12:53 AM Subject: [Dev-C++] Re: DevC++ & wxWindows > "Goran Kavrecic" <go...@em...> wrote: > > >Anyone has some idea or procedure how to install and setup DevC++ 4(preferably 5) in order to work with wxW? > > > Hi Goran, > > After many hours of frustration I've come to the conclusion that the > default wxWindows 2.2.9 package will not work with Dev-C++ 4.7.9.x/gcc > 3.2. I believe you have two choices: > > 1) Use Dev-C++ 4.7.9.x/gcc 2.9.5. A fresh installation will allow for > a build of the provided example. Should you install the upgrade for > v4.7.9.1, be sure to copy and paste the "Compiler" flags to the "C++ > compiler" list box (under Project Options->Compiler->Compiler Options). > > 2) If you want to use the gcc 3.2 version, I could find only one > solution: build a new wxWindows lib from the source provided at the > official wxWindows web site (located at > http://www.wxwindows.org/dl_msw2.htm). This was actually a > frighteningly straight-forward procedure, except that that a debug build > of the library will not work -- an executable linked against such will > report a library mismatch. I used the 2.3.4 snapshot and built a > Unicode release-level static lib and all appears well. Be sure to > remove the existing wxWindows package and perhaps even the "Image > Library" package as the wxWindows source includes that for libpng, > libjpeg, libtiff, and libzlib. Otherwise, watch out for lib > conflicts... In addition, you'll have to perform the aforementioned > compiler flag copy. > > Good luck to you. If you need any further help, I'll be happy to > provide it. > > Regards, > Marshall > > > > > ------------------------------------------------------- > 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: <cg...@wo...> - 2002-12-30 12:15:47
|
wxwindows2.3.3 works with gcc3.2 (the official wxwindows from www.wxwindows.org, not the packages, I never achieved to make them work), and using makefiles, search in the mailing list for makeprog.g95. (in the message body) Marshall Brewton wrote: > "Goran Kavrecic" <go...@em...> wrote: > >> Anyone has some idea or procedure how to install and setup DevC++ >> 4(preferably 5) in order to work with wxW? >> > Hi Goran, > > After many hours of frustration I've come to the conclusion that the > default wxWindows 2.2.9 package will not work with Dev-C++ 4.7.9.x/gcc > 3.2. I believe you have two choices: > > 1) Use Dev-C++ 4.7.9.x/gcc 2.9.5. A fresh installation will allow > for a build of the provided example. Should you install the upgrade > for v4.7.9.1, be sure to copy and paste the "Compiler" flags to the > "C++ compiler" list box (under Project Options->Compiler->Compiler > Options). > > 2) If you want to use the gcc 3.2 version, I could find only one > solution: build a new wxWindows lib from the source provided at the > official wxWindows web site (located at > http://www.wxwindows.org/dl_msw2.htm). This was actually a > frighteningly straight-forward procedure, except that that a debug > build of the library will not work -- an executable linked against > such will report a library mismatch. I used the 2.3.4 snapshot and > built a Unicode release-level static lib and all appears well. Be > sure to remove the existing wxWindows package and perhaps even the > "Image Library" package as the wxWindows source includes that for > libpng, libjpeg, libtiff, and libzlib. Otherwise, watch out for lib > conflicts... In addition, you'll have to perform the aforementioned > compiler flag copy. > > Good luck to you. If you need any further help, I'll be happy to > provide it. > > Regards, > Marshall > > > > > ------------------------------------------------------- > 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 > |