Author Topic: Need a little bit help with compiling.  (Read 1292 times)

0 Members and 1 Guest are viewing this topic.

Offline Pyrod

  • /dev/null
  • *
  • Posts: 7
  • Cookies: 0
    • View Profile
Need a little bit help with compiling.
« on: April 10, 2013, 03:57:24 pm »
hey guys..
I just started to learn c++ and i am totaly new with it.
My problem is i cant compile my cpp file. i get this error in the terminal:
:~/code$ g++ test.cpp
test.cpp:6:22: fatal error: isostream: No such file or directory
compilation terminated.


i even tried to g++ /home/username/code/test.cpp
also get an error.

I use g++ as compiler and i use CodeLite as editor.

Advise about editors and compilers are welcome, like i said i am new :)

thanks..

PyroD

EDIT:
LOL....
#include <iostream> i had spelled this wrong :) so its solved
thanks !!!! and ps advise is welcome

Staff note: y u double post!?
« Last Edit: April 10, 2013, 04:17:13 pm by Kulverstukas »

Offline rasenove

  • Baron
  • ****
  • Posts: 950
  • Cookies: 53
  • ಠ_ಠ
    • View Profile
Re: Need a little bit help with compiling.
« Reply #1 on: April 10, 2013, 04:13:34 pm »
you should use the modify button insted of double posting.

Also wanted to know where your learning c++ from.
My secrets have secrets...

Offline Pyrod

  • /dev/null
  • *
  • Posts: 7
  • Cookies: 0
    • View Profile
Re: Need a little bit help with compiling.
« Reply #2 on: April 10, 2013, 04:18:38 pm »
Sorry diddn't think of the editing..

i learn it from

http://www.cplusplus.com/doc/tutorial/

i downloaded the pdf..

thanks

Offline pllaybuoy

  • Peasant
  • *
  • Posts: 70
  • Cookies: -3
    • View Profile
Re: Need a little bit help with compiling.
« Reply #3 on: April 10, 2013, 06:50:27 pm »
You should get some good book if you are new to programming , because those articles are not too detailed . Try iostream.h instead of iostream and let us know if that works .I advise you to get a good IDE like visual c++
"Monsters are real , ghosts are real too . They live inside us and sometimes they win"

Offline rasenove

  • Baron
  • ****
  • Posts: 950
  • Cookies: 53
  • ಠ_ಠ
    • View Profile
Re: Need a little bit help with compiling.
« Reply #4 on: April 10, 2013, 07:22:15 pm »
You should get some good book if you are new to programming , because those articles are not too detailed . Try iostream.h instead of iostream and let us know if that works .I advise you to get a good IDE like visual c++

I agree and disagree,

first i agree that he should get a good learning resource, i suggest he should learn from c++ primer plus 6th edition(its posted on EZ) Its loaded with pure c++ infos, (dont know much about other resources so i wont say anything else)

and second i disagree about choosing IDEs,
Choosing ide is more about the users preference and the the platform he uses, you like Visual c++, i think its just shit.+ memory hog+ totally uncomfortable.
But it may not seem like that to you. I suggest Pyrod to try out some IDE  and decide after that,

i tho, tried a few and think i like netbeans most, code::blocks is good, but doesnt really ring the bell.
My secrets have secrets...

Offline Pyrod

  • /dev/null
  • *
  • Posts: 7
  • Cookies: 0
    • View Profile
Re: Need a little bit help with compiling.
« Reply #5 on: April 10, 2013, 09:01:49 pm »
Thanks for all the information guys..

well i think i want to buy a book. so i will take a look at it next week.
For now i just do some tutorials and experiment with that.
Untill now it works all fine and i even can find my own errors already, and know how to solve them.
 so its going to the good way :P

about the IDE i never heard from it. I dont know what it is. I downloaded CodeLite and i downloaded g++ and i just gonna look at the scripts. try to make them and try to understand the script.

So if IDE is recommended i will take a look at it.


thanks guys

Offline Xires

  • Noob Eater
  • Administrator
  • Knight
  • *
  • Posts: 379
  • Cookies: 149
    • View Profile
    • Feed The Trolls - Xires
Re: Need a little bit help with compiling.
« Reply #6 on: April 10, 2013, 11:37:50 pm »
Try CodeBlocks.  It should be in the repositories.  You can also find it on http://www.codeblocks.org/

Also, for future reference, you should probably specify an output filename when using g++ directly:
Code: (bash) [Select]
$ g++ -o executable source.cpp

The above will compile the file 'source.cpp' and output a compiled binary called 'executable'.
-Xires