Code::Blocks Forums

User forums => Help => Topic started by: Caaronevans on January 27, 2011, 03:28:30 pm

Title: Process terminated with status 2 (0 min, 0 sec) 0 errors, 0 warning but.[Solved]
Post by: Caaronevans on January 27, 2011, 03:28:30 pm
-------------- 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.
Title: Re: Process terminated with status 2 (0 min, 0 sec) 0 errors, 0 warning but...
Post by: stahta01 on January 27, 2011, 05:53:07 pm
Please learn to read the posts you find while searching

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

Tim S.
Title: Re: Process terminated with status 2 (0 min, 0 sec) 0 errors, 0 warning but...
Post by: Caaronevans on January 27, 2011, 07:20:21 pm
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.