Code::Blocks Forums

User forums => Help => Topic started by: Redfox814 on May 25, 2012, 01:27:44 am

Title: Can't #include iostream, vector, string, etc
Post by: Redfox814 on May 25, 2012, 01:27:44 am
Like the title says.
I can't include stl files
Title: Re: Can't #include iostream, vector, string, etc
Post by: ollydbg on May 25, 2012, 02:01:20 am
Like the title says.
I can't include stl files
I can't help you because I can't understand your problem, sorry. You need to give us detailed information.
Title: Re: Can't #include iostream, vector, string, etc
Post by: Redfox814 on May 25, 2012, 02:06:45 am
Say this is my scribt


#include <iostream>

int main(){
std::cout<<"it doesn't work"<<std::endl;
}


It'll generate an error that says:
error: iostream: no such file or directory
Title: Re: Can't #include iostream, vector, string, etc
Post by: stahta01 on May 25, 2012, 03:18:21 am
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

Quote
Remember the file extension matters: *.c is compiled as C file, *.cpp is compiled as C++ file.

Tim S.
Title: Re: Can't #include iostream, vector, string, etc
Post by: Redfox814 on May 25, 2012, 04:46:22 am
Thanks! Your awesome  :)