News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

the command g++ is not known... trying to install boost

Started by WeakPeak, January 14, 2011, 10:54:20 PM

Previous topic - Next topic

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 :

Quotebjam --toolset=gcc "--prefix=<installpath>" install

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

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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:

set PATH=C:\Programme\CodeBlocks\MinGW\bin;%PATH%

in commandline

than


Quoteset PATH=C:\boost\boost-jam-3.1.18-1-ntx86;%PATH%

for the propper path and version of jam

i also executed the bootstrap.bat in commandline


than i did

bjam --toolset=gcc "--prefix=C:\Programme\CodeBlocks" install

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

#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";
}


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