User forums > General (but related to Code::Blocks)

MinGW include directories

(1/2) > >>

lpcstr:
After installing MinGW on Windows I couldn't compile anything from command line because it doesn't search for headers or libs in the right folders. I installed Code::Blocks and added the directories under compiler options to solve this issue, but now I need to build the Boost library and bjam won't work because when it tries to compile with GCC the standard headers can't be found. How can I fix this?

stahta01:
Not really a Code::Blocks question
Read my last post on this subject: http://forums.codeblocks.org/index.php/topic,14042.0.html

Tim S.

lpcstr:
Well Tim, that's one long tree of links. I looked through it and none of them point to anything useful.

My problem is that gcc/g++ won't compile anything from command line because it isn't set up to look in the right folders for includes and libs.

If I try to build Boost with bjam --toolset=gcc --prefix=<installpath> install it gives me the same X.h couldn't be found error messages I would get when trying to compile with gcc without specifying -IC:\MinGW\include\ etc.

Jenna:

--- Quote from: lpcstr on February 05, 2011, 05:34:20 am ---My problem is that gcc/g++ won't compile anything from command line because it isn't set up to look in the right folders for includes and libs.

--- End quote ---
That means your installation is broken.
You should never need to set the includes explicitely.

lpcstr:

--- Quote from: jens on February 05, 2011, 08:34:51 am ---
--- Quote from: lpcstr on February 05, 2011, 05:34:20 am ---My problem is that gcc/g++ won't compile anything from command line because it isn't set up to look in the right folders for includes and libs.

--- End quote ---
That means your installation is broken.
You should never need to set the includes explicitely.

--- End quote ---

Well, thanks for telling me it's broken. I installed it using their GUI installer. I tried reinstalling it too, and using an older version just for the sake of trying, and it made no difference. This behavior is the same no matter what.

So maybe you know how to fix it?

Navigation

[0] Message Index

[#] Next page

Go to full version