User forums > Help

iostream, string, etc compiled as C instead of C++

<< < (2/2)

stahta01:
In that case we need to verify tool chain executables

"settings" -> "Compiler and Debugger"
Select "Tool Chain Executable" Tab

Verify that "C++ Compiler" is "mingw32-g++.exe"
Note, it could have a full path to it; this helps some Vista and GCC 4.x issues. example, "C:\MinGW\mingw32-g++.exe"

Edit: If the problem still exists please Turn on Full Compiler Logging so we can see the Build Log.


--- Quote ---Settings -> "Compiler Debugger"
Select tab "Other Settings" on far right
Change "Compiler Logging" to "Full Command Line"

Then Try rebuilding and post the "Build Log" Then someone might see the issue cause.
--- End quote ---

Tim S

i3x171um:
Ah, I figured it out. I had a feeling this is what it was...

In the GCC-G++ include directory, there is a single folder called c++. Inside that, it again has only one folder: 3.4.2. Inside that is the STL, along with some other helper headers.

My obsessive-compulsive-organizer self thought those two levels of folders (/c++/3.4.2/) were unnecessary, so I copied the contents of the 3.4.2 folder straight into the include directory. It turns out, however, that g++ expects the stl to be in include/c++/3.4.2, and chokes if it's not.

My bad. Sorry for the thread.

MortenMacFly:

--- Quote from: i3x171um on July 18, 2007, 04:15:04 am ---My obsessive-compulsive-organizer self thought those two levels of folders (/c++/3.4.2/) were unnecessary

--- End quote ---
LOL... Right... :lol: :lol: :lol:

Navigation

[0] Message Index

[*] Previous page

Go to full version