Author Topic: Process terminated with status 2 (0 min, 0 sec) 0 errors, 0 warning but.[Solved]  (Read 9768 times)

Offline Caaronevans

  • Single posting newcomer
  • *
  • Posts: 5
-------------- 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.
« Last Edit: January 27, 2011, 07:20:46 pm by Caaronevans »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Please learn to read the posts you find while searching

http://forums.codeblocks.org/index.php/topic,8682.0.html

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Caaronevans

  • Single posting newcomer
  • *
  • Posts: 5
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.