User forums > General (but related to Code::Blocks)
the command g++ is not known... trying to install boost
(1/1)
WeakPeak:
Hello i was trying to install boost (1.45) with a embeded MinGW/gcc Code::Blocks 10.05 version on a windows xp pro sp3 system.
i was trying this http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef wikki entry for installing boost
i changed the commands and variable to propper path and versions...
but on the point where i do this line :
--- Quote ---bjam --toolset=gcc "--prefix=<installpath>" install
--- End quote ---
i get
>> The command g++ is not known...
as output
the result is that all header files and the include folder exists
also the lib folder exists but it is empty
can someone help me out here?
stahta01:
See some past posts
http://forums.codeblocks.org/index.php/topic,13645.0.html
http://forums.codeblocks.org/index.php/topic,13953.0.html
http://forums.codeblocks.org/index.php/topic,10792.0.html
Note: Confirm your GCC Compiler Installation is valid and complete.
Tim S.
WeakPeak:
well irrlicht projects works fine with code blocks when compiling, building, running, debugging inside code blocks
but i recognized the envoirement path for MinGw is (was) not set
so i did the following:
--- Code: ---set PATH=C:\Programme\CodeBlocks\MinGW\bin;%PATH%
--- End code ---
in commandline
than
--- Quote ---set PATH=C:\boost\boost-jam-3.1.18-1-ntx86;%PATH%
--- End quote ---
for the propper path and version of jam
i also executed the
--- Code: ---bootstrap.bat
--- End code ---
in commandline
than i did
--- Code: ---bjam --toolset=gcc "--prefix=C:\Programme\CodeBlocks" install
--- End code ---
in commandline (all on C:\boost\boost_1_45_0 where i formerly unpacked the 7z )
now inside code blocks
in a new project i linked only the search dircetory in the build options because with the description in the link on the wikki boost will not be found on windows
anyway...
the two examples where linked in the wikki are also posix examples
--- Code: ---#include <./boost/filesystem.hpp>
//include for std::cout
#include <iostream>
namespace bfs=boost::filesystem;
int main()
{
bfs::path p("first.cpp");
if(bfs::exists(p))
std::cout << "exists";
}
--- End code ---
will endup in the errorcode hpp file at line 214 :)
so boost is installed now propperly and linked aswell just the usage doesent work but i gues thats my fault need to have a closer look at boost :)
WeakPeak:
ok now it works
i just needed to link the librarys propperly (the wikki also says something different)
and needed to link a few dependencys
Navigation
[0] Message Index
Go to full version