Author Topic: Problem with Ubuntu  (Read 6539 times)

azViking

  • Guest
Problem with Ubuntu
« on: September 10, 2010, 01:25:47 pm »
sorry for the long post, if you don't want to read the wall text, feel free to skip down 2 paragraphs to the part after the dashes (---------------------)

ok, so, I'm normally a windows guy, and I was able to get CodeBlocks to work on my windows7 laptop, but I got F*cked up by a bunch of virus due to me being stupid and had to reformat my computer, my disk drive  is broken so I tried installing win7 from usb, and it wasn't working, then tried installing ubuntu from usb and realized why win7 didn't work, I decided to keep ubuntu instead of going back to win7, thought I'd try it out.
but none of that really pertains to by problem, just felt like giving some back story to my situation.

So, I had just installed ubuntu (10.4 i believe?) whatever the newest one is for notebooks
I was looking around in the system setup stuff, to .. you know...... uhh set up my new computer
and I came across the Synaptic Package Manager, and in the nifty little program I found the availability to install codeblocks, without the hassle  of going to the site to download it
(even though it's not that much of a hassle)
so it installed all right and seemed to be working correctly, but;
------
Whenever I try to build anything, it says

-------------- Build: Debug in a ---------------

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

and by anything I mean anything, that was copied from the build log of a
new Project -> Console Application

so the only thing main.cpp has in it is

#include <iostream>

using namespace std;

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

I'm a bit stumped, as I can't seem to find any sort of answer anywhere, I've been searching the net for the past 2-3 hours,
wow, it's almost 5:30, I'm sorry for the rambling and all of the unneeded info, i get that way sometimes when I don't get sleep because of problems like this,

so, if anyone has an answer for me, please, give me a hand,
i want to start learning to program :(   :(

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Problem with Ubuntu
« Reply #1 on: September 10, 2010, 06:11:57 pm »
iostream is a class, not a header.
You should write #include <ostream>
Kernel Extremist - PedroM power ©

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Problem with Ubuntu
« Reply #2 on: September 10, 2010, 10:30:18 pm »
Please search for "unterminated quoted string" using the Search function of the forums. There seem to be two reasons why it happens, and there is the answer as well.

Offline Caaronevans

  • Single posting newcomer
  • *
  • Posts: 5
Re: Problem with Ubuntu
« Reply #3 on: January 27, 2011, 03:56:54 pm »
I'm having the same problem but chainging it from #include <iostream> to <ostream> isn't working for me.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Caaronevans

  • Single posting newcomer
  • *
  • Posts: 5
Re: Problem with Ubuntu
« Reply #5 on: January 27, 2011, 04:15:34 pm »
I already tried that and it started giving me


-------------- 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
 
which I'm not sure what the new thing means I am very new to this all still.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Problem with Ubuntu
« Reply #6 on: January 27, 2011, 06:42:21 pm »
Remove the single quote in your path and it will work.

Offline Caaronevans

  • Single posting newcomer
  • *
  • Posts: 5
Re: Problem with Ubuntu
« Reply #7 on: January 27, 2011, 07:16:55 pm »
Ah ok thank you I understand what you mean now, I saw that before but it didn't sink in. Again thank you!