| | |
Code::blocks compilation error
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2008
Posts: 71
Reputation:
Solved Threads: 10
I'm new to this editor, i used Dev-Cpp, and i heard this is a better tool to program with. Problem is that Code::blocks wont compile this:
I switched to Code::blocks mainly because i'm using linux and i cannot (read: don't want to) complicate with Dev-Cpp. i did manage to run it using wine but i still cannot run exe's produced by Dev-Cpp. i think they can also be run using wine but here comes another problem - im using live session 
i know i should install the system like normal man but that is not question, i need to know how can i make Code::Blocks compile that thing above
CPP Syntax (Toggle Plain Text)
#include <stream.h> main () { cout << "Hello world!\n"; }

i know i should install the system like normal man but that is not question, i need to know how can i make Code::Blocks compile that thing above
•
•
Join Date: Aug 2008
Posts: 71
Reputation:
Solved Threads: 10
C++ Syntax (Toggle Plain Text)
#include <iostream.h> int main () { std::cout << "Welcome to C++ programming!\n"; return 0; }
says:
3: Syntax error: "(" unexpected
Press ENTER to coutinue.
i've just installed it so maybe it needs some configuring, but i heard that it already uses GCC compiler and has everything it needs to work well
http://www.codeblocks.org/features
Last edited by Alibeg; Feb 15th, 2009 at 6:13 am.
•
•
Join Date: Aug 2008
Posts: 71
Reputation:
Solved Threads: 10
i know this should have been C++ but when i started i didnt have a clue whether it was c or c++ compiler (I could have posted a new thread but it seemed aggressive)
Diagnostics:
3: Syntax error: "(" unexpected
Press ENTER to coutinue.
i tried both iostream and iostream.h,and i did try printf also. nothing works. maybe an Intrepid Ibex that is making problems, but i still think im missing something in configuration
Diagnostics:
3: Syntax error: "(" unexpected
Press ENTER to coutinue.
i tried both iostream and iostream.h,and i did try printf also. nothing works. maybe an Intrepid Ibex that is making problems, but i still think im missing something in configuration
![]() |
Similar Threads
- no error message but showing project not compiled (C++)
- error: expected constructor, destructor, or type conversion before '<' to (C++)
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
- DVD-R Nero illegal disk (Storage)
Other Threads in the C Forum
- Previous Thread: Binary Add and Substraction
- Next Thread: I have a problem that needs urgently to resolve many
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays asterisks binarysearch calculate centimeter char convert copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax directory dynamic fflush file fork forloop frequency getlasterror givemetehcodez graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators infiniteloop interest kernel km lazy linked linkedlist linux linuxsegmentationfault list lists locate logical_drives match matrix microsoft motherboard multi mysql number open opendocumentformat opensource owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling scripting segmentationfault send sequential shape socketprograming spoonfeeding stack standard string strings structures systemcall testautomation turboc unix user variable voidmain() wab windows.h








