|
From: Laurence <lau...@ip...> - 2002-04-04 05:00:18
|
Hi Bob. You sound like someone who knows more about compilers & building = libraries than me, so I hope I can be of assistance to you.=20 I downloaded the full wxWindows distribution from www.wxWindows.org, = and found I could not build the libraries with Dev-C++ - many errors, = mainly of the kind that appear to me to result from headers not being = included, macros not being defined. I didn't know really what to do with = them all. So, I downloaded (again) the full Mingw compiler suite from = www.mingw.org , and used the relevant wxWindows makefiles, following all = the wxWindows build instructions. It worked perfectly. =20 Still, I could not use it with Dev-C++. This may well have been because = I did not properly understand the required library and include paths to = add to the Dev-C++ environment/project options. I don't know - maybe = you've got to build it all a certain kind of way. I don't know enough = about it, and I was in a hurry. Finally, I found this page: http://steveperkins.net/development/platforms/cpp.php where you will find a Dev-C++ package for wxWindows (just 2.64MB, as = against 8+MB unbuilt) (wxWindows samples not included). Just install = into your Dev-C++ directory. It includes a template for GUI = applications, available from Dev's New Project menu, which has project = options preset with correct paths for wx2 includes and libraries, and = correct compiler command options. An official Dev-C++ packages page has a link for a wxWindows package, = but, as explained on that page, some problem caused it to be = unavailable. However, the wxWindows samples (without the rest of = wxWindows) are available from this page: http://devcpp.everfloyd.com/old/wxwindows.html The samples are useful for quick entry into the wxwindows world. In addition, I have got the wxWindows WinHelp, from www.wxwindows.org, = which I have added to the Dev-C++ tools menu with the tools = configuration option. I find this indispensibly useful. Cheers, Laurence.=20 ----- Original Message -----=20 From: Bob Wilson=20 To: dev...@li...=20 Sent: Tuesday, April 02, 2002 5:48 AM Subject: [Dev-C++] wxWindows I am not sure this is the place to seek this information, but I can = not find a specific site for Bloodshed.=20 =20 I have down loaded the wxWindows programs and source files, but I am = getting an consistant error in compilation which I assume is either = related to the Bloodsheed compiler which is: Bloodsheed Deve=3DC++ Ver 4.01 =20 mingw complier 2.95-1 MSVCRT + updated headers & libraries The compiler finds all of the various include files that are either = source or library, but during the preprocessor or precompile phase it = produces three fatal errors. They are: In file included from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\debug.h:17, from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\defs.h:468, from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wxprec.h:13, from = f:\dev-c_~1\downlo~1\wxwind~1\wx2\demos\life\life.cpp:21: F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wxchar.h:429: #error = "Please define string case-insensitive compare for your OS/compiler" In file included from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\memory.h:20, from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\object.h:20, from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wx.h:16, from = f:\dev-c_~1\downlo~1\wxwind~1\wx2\demos\life\life.cpp:28: F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\string.h:170: #error = "Please define string case-insensitive compare for your OS/compiler" In file included from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\cmndata.h:21, from = F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\wx.h:48, from = f:\dev-c_~1\downlo~1\wxwind~1\wx2\demos\life\life.cpp:28: F:\DEV-C++\Downloads\wxWindows\wx2\include\wx\fontutil.h:65: #error = "Unsupported toolkit" It appears that either the compiler is not providing the proper = identification, is a mismatch despite of its mingw roots, or that I need = to modify the source code to specify the proper option for each of the = three unidentified definitions during the #if ( . . . ) #endif =20 #ifdef . . .=20 #endif option identification phases. I could flail around and eventually = either figures it out or arrive at a serendipitous solution (more = likely), but I am sure I am not the first to run into this problem. FYI = operating system is stock Windows98.=20 I love learning and becoming proficient in a new language. It always = makes you feel like a real mental midget.=20 Regards, Bob |