Skip to main content

Thread: Anjuta not compiling correctly


hello,
started taking class on c++. in class, use visual studio 2010, don't have windows machine. trying use anjuta, having trouble.

have installed, dependencies resolved, can't seem run own program.

when type:
#include <iostream>
using namespace std;

void main()
{
cout << "test";
}
the 'using namespace std;' not highlighted should be, else is.

build it, compile , run it.
output:
/home/paul/ex2cpp/debug/src/ex2cpp
----------------------------------------------
hello world!

----------------------------------------------
program exited errcode (0)
press enter key close terminal ...
no matter run- own code, code internet, whatever, keep getting "hello world" message.

quite annoyed , help. code worked in class!

thanks.

edit: might note on 10.04. might not, though.

are sure compiling or running right program?


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Anjuta not compiling correctly


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account