Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Frog on December 26, 2008, 12:16:42 pm
-
Dear all!
I am just a beginner, and I have a problem with wxPack.
I am using CodeBlocks v. 8.02, minGW v. 3.81, wxPack 2.8.8.04 all installed on C:, OS - XP sp3
Then I try to compile barebone wxWidgets project from CodeBlocks wizard, or any samples from wxPack it starts and proceed without
any errors - at some point empty .exe file appears in the Debug/Release bin folder, stays there for a few seconds, then disappear, and
few seconds after that - compilation stops - no errors shown. I tried different settings for global variables, compiler and linker options,
but the result is always the same. No .exe file, and no errors. Can You, please, help me and point what's wrong ? Thank You for the attention.
P.S. Regular Win32 apps are compiling normally, and produce .exe as they should.
-
I am NOT using wxPack, but I believe that the error is the Mingw version, because wxPack's autor say in the homepage section that the package only is compiled for MinGW Gcc4.2.1.
-
I'm using the SVN version of codeblocks in windows xp.
and I'm using the mingw from http://www.tdragon.net/recentgcc/
And using wxWidgets 2.8.9 library compiled myself. In another computer, I'm using wxpack. They all work OK!
See the screencast of a sample test
http://sites.google.com/site/studycodeblocks/Home/wx.swf
-
I have found that for more than Hello world tests, wxpack works better using MultiLib setting instead of Monolithic Lib.
Tim S
-
Thanks for your hint.
As a beginner of codeblocks and wxWidgets, I'm not sure to determine which libraries should be linked to a specific wxwidgets project. So as a simple way, I use monolithic library to let things work easy.
If I was an expert like you :D, maybe it is better to use "MultiLib setting instead of Monolithic Lib"
-
Thank You All for Your help and attention! I tend to agree with alb_cb_moon that ,most likely, the cause of trouble is incorrect version of MinGW. I've successfully compiled any configuration of wxWidgets Application in VC++ Studio 2005, installed on the same computer, with the same wxPack. I will move to higher version of MinGW - try, and report the results to you.
-
Ah, minGW v. 3.81 is a current version, it didn't cause the problem. The problem was in my configuration options. wxWidgets project wizard has somehow misleading statement "Please select the location of wxWidgets folder this is top-level folder ... blah-blah-blah... must contain 'include' and 'libs' subfolders" - so I set the path. But it must contain $(#wx) instead - and compilation will proceed normally. Special Thanks to ollydbg for screencast tutorial. :) I can compile wxWidgets app now :D Thank You!