trikker
trikker

Reputation: 2709

Code::Blocks not being able to find standard library headers?

I recently switched from Bloodshed to Code::Blocks. I wrote a simple input/output program to get a feel for it, and when I tried to compile it I got errors for all of the headers I had included, saying that there was no such directory.

I took a look at the file and saw that the file was saved as a C file rather than a C++ file, how do I change this? (I know this is why because the C++ files I transferred over from Bloodshed work fine.)

Upvotes: 1

Views: 884

Answers (1)

John Odom
John Odom

Reputation: 1213

As @nagul said in the comments, saving the file as <file>.cpp instead of <file> fixed the no such directory error when compiling.

Upvotes: 1

Related Questions