User forums > General (but related to Code::Blocks)
TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
patlecat:
Things are getting weirder by the minute. I've rebuilt wxWidgets 2.8.4 after I copied runtime3.11 over the installation again. Then my wx project showed the same error but I noticed that it used the 2.8.3 directories, although I changed them to 2.8.4 in CB!
Ok so I deleted it and created a new default wxW project and now I have these totally different errors.... CB is driving me crazy :roll:
--- Code: ---mingw32-gcc-4.2.0.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -g -march=athlon-xp -O3 -W -pg -g -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib\gcc_lib\msw -Ih:\MinGW\include -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\include\wx\msw -IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib -IH:\wxWidgets-2.8.4\lib\gcc_lib -c H:\myProjects2\wixTest\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
In file included from H:/wxWidgets-2.8.4/include/wx/defs.h:21,
from H:/wxWidgets-2.8.4/include/wx/wxprec.h:13,
from ./wx_pch.h:14,
from :0:
H:/wxWidgets-2.8.4/include/wx/platform.h:196:22: error: wx/setup.h: No such file or directory
In file included from H:/wxWidgets-2.8.4/include/wx/platform.h:279,
from H:/wxWidgets-2.8.4/include/wx/defs.h:21,
from H:/wxWidgets-2.8.4/include/wx/wxprec.h:13,
from ./wx_pch.h:14,
from :0:
H:/wxWidgets-2.8.4/include/wx/chkconf.h:98:9: error: #error "wxUSE_DYNLIB_CLASS must be defined."
H:/wxWidgets-2.8.4/include/wx/chkconf.h:106:9: error: #error "wxUSE_EXCEPTIONS must be defined."
H:/wxWidgets-2.8.4/include/wx/chkconf.h:114:9: error: #error "wxUSE_FILESYSTEM must be defined."
H:/wxWidgets-2.8.4/include/wx/chkconf.h:122:9: error: #error "wxUSE_FS_ARCHIVE must be defined."
...
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h: In function 'wxSetCCUnicodeFormat':
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:48: error: expected expression before ':' token
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:45: warning: unused parameter 'hwnd'
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h: At top level:
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxFont'
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxGetCCDefaultFont'
...
--- End code ---
When creating a new wxW project, the wizard always says: A matching Debug/Release configuration cannot be found in the wxWidges directory you specified. This means that Debug/Release target of your project will not be built.
But I gave the right directory both in the wizard (why does he need that anyway??) and in the Settings-GlobalVariables.
Biplab:
--- Quote from: patlecat on May 20, 2007, 11:04:27 am ---When creating a new wxW project, the wizard always says: A matching Debug/Release configuration cannot be found in the wxWidges directory you specified. This means that Debug/Release target of your project will not be built.
But I gave the right directory both in the wizard (why does he need that anyway??) and in the Settings-GlobalVariables.
--- End quote ---
Wizard needs that directory to setup your project properly. The error message indicates that your wxWidgets installation is not perfect. It has some fault. GCC fails due to that.
Please check if the appropriate libraries are built properly inside the wx directory that you are specifying. That should solve your problem.
Regards,
Biplab
patlecat:
--- Quote from: Biplab on May 20, 2007, 11:32:13 am ---Wizard needs that directory to setup your project properly. The error message indicates that your wxWidgets installation is not perfect. It has some fault. GCC fails due to that.
Please check if the appropriate libraries are built properly inside the wx directory that you are specifying. That should solve your problem.
--- End quote ---
Wizard doesn't need to ask what is already set in the "Settings" of CB, but maybe there is another reason for this?
I have checked the libs and they are fine. Dialogblocks compiled my test project just fine with the actual installation. No errors during or after the compile. I still suspect that CB messes up with directories or something else.
Biplab:
--- Quote from: patlecat on May 20, 2007, 11:38:11 am ---Wizard doesn't need to ask what is already set in the "Settings" of CB, but maybe there is another reason for this?
--- End quote ---
Wizard asks it as user may keep the wx to a different directory. The path is used as the base path to setup project.
If Dialogblocks can compile your project then it should get compiled with C::B. Please check the settings that you're using. The project will be setup based on your settings choice.
In short the error you are getting is due to settings mismatch.
patlecat:
Ok so you're saying that the Wizard can override the general settings for a new project? But if I dont want to change it, then I shouldn't be asked to do it, i find this confusing. Maybe a radio button would help here "Use actual wxW" and "Use different wxW".
Also I find it difficult to understand why there is no clear instruction on what directories need to be included and where? Or why not fill the necessary fields automatically once u know the base dir of wxW?
My wxW settings are as follows:
Settings - Global Variables (variable: wx) :
base: H:\wxWidgets-2.8.4
include: H:\wxWidgets-2.8.4\include
lib: H:\wxWidgets-2.8.4\lib\gcc_lib
plus in the Compiler Settings I have these additional directories:
Search directories:
++ Compiler
H:\wxWidgets-2.8.4\include
H:\wxWidgets-2.8.4\include\wx\msw
H:\wxWidgets-2.8.4\contrib\include
H:\wxWidgets-2.8.4\lib
H:\wxWidgets-2.8.4\lib\gcc_lib
++ Linker
H:\wxWidgets-2.8.4\lib
H:\wxWidgets-2.8.4\lib\gcc_lib
++ Resource compiler
h:\MinGW\include
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version