Code::Blocks Forums
User forums => Help => Topic started by: Kamaitachi on July 26, 2010, 10:44:22 pm
-
I tried to compile a file and it said that climits wasn't found. I just installed Code::Blocks. Any ideas?
Edit: Forgot. It's Code::Blocks 10.05, with gcc 4.4.1 running on Windows 7 64.
-
Do you have a c++ compiler (g++) installed?
Also read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
And probably you should ask your question in a beginners c/c++ forum.
-
Well, I downloaded the Code::Blocks bundled with MinGW...
EDIT: I was browsing the MinGW installation folder, and I found that, while every other type of file was alright, climits (and all the others) were called simply "Files"... What should I do?
-
Do you have a c++ compiler (g++) installed?
Also read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
And probably you should ask your question in a beginners c/c++ forum.
Do the above and look at the rebuild log; and, post here the line of code where you do the include.
Tim S.
-
This is all that appears in the build log, with the "Full command line" option, when I try to compile a simple "Hello World" program:
C:\Users\Mkh\Documents\C++\Untitled1.c:8: error: `cout' undeclared (first use in this function)
C:\Users\Mkh\Documents\C++\Untitled1.c:8: error: (Each undeclared identifier is reported only once
C:\Users\Mkh\Documents\C++\Untitled1.c:8: error: for each function it appears in.)
Process terminated with status 1 (0 minutes, 0 seconds)
5 errors, 1 warnings
-
C:\Users\Mkh\Documents\C++\Untitled1.c:8: error: `cout' undeclared (first use in this function)
Please use the extension cpp for C++ files. C::B treats .c files as "C" program files!
Tim S.
-
It won't save them as .cpp files...
-
It won't save them as .cpp files...
You have to give the file-ending on save.
-
*Headdesk* It worked now *facepalm* I'm a idiot :oops: :oops: Well, sorry >.< Should've checked that out first... Anyway, thank you very much! ^^