Reputation: 2709
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
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