Code::Blocks Forums
User forums => Help => Topic started by: kodestiff on January 18, 2010, 10:39:16 am
-
Hello I'm new with just about everything I'm going to mention...
I'm getting this error message after following the WxWidgets tutorials http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Hello_world and http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef .
I have installed Code::Blocks 8.02 (from Windows installer file) and wxPack 2.8.8.04 (also from installer file). I had problems compiling the wxwidgets from code :? , which might just be a very bad omen... I have installed mingw 5.1.6.
Searching the web suggested that possible problems could be the Global Variable for wxwidgets (directory) or an outdated GCC, but I think both are ok, since I only installed mingw yesterday and set the Global Variable my self.
Is it possible that Code::Blocks is using the wrong GCC? I also have bloodshed dev-C++ installed and it is quite old...
Could badly set system path cause this?
System: WindowsXP SP2
Thank you for any help!
Stef
-
Could badly set system path cause this?
In 8.02 release: yes.
You have to make sure, that the bin-directory of the gcc you want to use comes first in system-path.
If you use a recent nightly build, C::B puts the configured gcc in front of the system path it uses while compiling, but only if you use it from inside C::B, of course.
-
Thank you for replying.
Problem solved!! :D
I changed my path to start with C:\mingw\bin , but still not working.
Now I tried a basic hello world (from within CodeBlocs directory) and I got an iostream: No such file or directory error. Also tried including iostream.h and iostream.cpp
Uninstalled Dev-C++. (Had to manually delete, since uninstaller said it wasn't installed)
Now Code::Blocks compiler did NOTHING :shock:
Setting>Compiler>Reset defaults
found the correct mingw installation.
Yohooo! hello world and wx compiles and works.
This all would have been easier if I could not only set the GNU GCC compiler as compiler, but also point out the correct installation. (This was done automatically)
Stef
-
Hi;
I am getting the following error messages trying to compile the HelloWorld example
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|1|error: sdk.h: No such file or directory|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|2|error: configurationpanel.h: No such file or directory|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.h|14|error: wx/wxprec.h: No such file or directory|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.h|20|error: cbplugin.h: No such file or directory|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|4|error: logmanager.h: No such file or directory|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.h|23|error: expected class-name before '{' token|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|10|error: expected constructor, destructor, or type conversion before '<' token|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp||In constructor 'HelloWorld::HelloWorld()':|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|19|error: 'Manager' has not been declared|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|19|error: '_T' was not declared in this scope|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|21|error: 'NotifyMissingFile' was not declared in this scope|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|49|error: 'HelloWorldPlugin' has not been declared|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp||In function 'int Execute()':|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|51|error: 'IsAttached' was not declared in this scope|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|53|error: 'Manager' has not been declared|
C:\Program Files\CodeBlocks\MyProjects\Tests\Hello World\HelloWorld.cpp|53|error: '_' was not declared in this scope|
||=== Build finished: 14 errors, 0 warnings ===|
Seems to be a path error perhaps since I can see the *.h files from windows file manager. Also from the windows path statement I do not see a reference to any cb paths.
thanks
Doc