News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Process terminated with status 2 (0 min, 0 sec) 0 errors, 0 warning but.[Solved]

Started by Caaronevans, January 27, 2011, 03:28:30 PM

Previous topic - Next topic

Caaronevans

-------------- Build: Debug in HelloWorld ---------------

Compiling: main.cpp
S: 1: Syntax error: Unterminated quoted string
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

Here is the code which I have done several time on windows as I started to try out programming and it worked fine until I tried it last night on windows and i forget why it wouldn't so I went back to Ubuntu and now I'm getting the above error. Sorry if its some simple thing, I'm still new to all this.

#include <iostream>

using namespace std;

int main()
{
   cout << "Hello world!" << endl;
   return 0;
}


I was told about the Full Command Line option, and once I enabled that I started getting the error


-------------- Build: Debug in HelloWorld ---------------

g++ -Wall -fexceptions  -g     -c "/media/AARON'S PRO/HelloWorld/main.cpp" -o obj/Debug/main.o
S: 1: Syntax error: Unterminated quoted string
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

And I have already tried switching #include <iostream> to #include <ostream> as was noted in another post.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Caaronevans

Sorry I understand now and have corrected my error thank for smacking me back to it I tend to over look small details that I need.