View previous topic :: View next topic |
Author |
Message |
cuchumino Guru
Joined: 24 Nov 2004 Posts: 428
|
Posted: Mon Jul 07, 2008 1:42 am Post subject: C++ compiler for gentoo (and/or tips :D) |
|
|
ok... so i wrote c++ a VERY long time ago. That is, I programmed in 2000, and... the software i used was a very old compiler that was used in school at that time.
Question is, I never really did get to use any of the new compilers. So, i would like to know if there are any compilers in gentoo. I know there is a java compiler called Netbeans, and i also know that it has c++ option. But are there any others?
I have been trying to compile some dumb code, and i added typical Code: | #include <iostream.h> | to the beginning of the code to add the iostream library. But for some reason it is not there, and hence my code does not compile.
Anyway, any help will be appreciated |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Mon Jul 07, 2008 2:00 am Post subject: Re: C++ compiler for gentoo (and/or tips :D) |
|
|
cuchumino wrote: | So, i would like to know if there are any compilers in gentoo. |
I am not a programmer, but I am pretty sure the default C++ compiler in Gentoo is provided by sys-devel/gcc
|
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Mon Jul 07, 2008 3:30 am Post subject: Re: C++ compiler for gentoo (and/or tips :D) |
|
|
cuchumino wrote: | I have been trying to compile some dumb code, and i added typical Code: | #include <iostream.h> | to the beginning of the code to add the iostream library. But for some reason it is not there, and hence my code does not compile.
Anyway, any help will be appreciated |
There's no such thing like <iostream.h>, there's <iostream> ;) _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
cuchumino Guru
Joined: 24 Nov 2004 Posts: 428
|
Posted: Mon Jul 07, 2008 3:38 am Post subject: |
|
|
ahh yes thanks.
And i saw that i had another problem in the code.
It is for windows so i have read. so how do I call the linux library that is the analogous? |
|
Back to top |
|
|
node_one Apprentice
Joined: 07 Apr 2008 Posts: 165
|
Posted: Mon Jul 07, 2008 6:03 am Post subject: |
|
|
There is ncurses if you are looking for console "graphics." I do not know much about it. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Tue Jul 08, 2008 6:58 am Post subject: Re: C++ compiler for gentoo (and/or tips :D) |
|
|
unK wrote: | cuchumino wrote: | I have been trying to compile some dumb code, and i added typical Code: | #include <iostream.h> | to the beginning of the code to add the iostream library. But for some reason it is not there, and hence my code does not compile.
Anyway, any help will be appreciated |
There's no such thing like <iostream.h> |
False. <iostream.h> most definitely is a real thing but it is deprecated in favor of <iostream> since it is the standards-compliant version |
|
Back to top |
|
|
coolsnowmen Veteran
Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Tue Jul 08, 2008 7:08 am Post subject: |
|
|
cuchumino wrote: | ahh yes thanks.
And i saw that i had another problem in the code.
It is for windows so i have read. so how do I call the linux library that is the analogous? |
node_one wrote: | There is ncurses if you are looking for console "graphics." I do not know much about it. |
this is by far going to be your biggest problem. What function were you using requiring conio? was this a borland c++ program?
what is this program supposed to do? how big is it (post it somewhere)? _________________ emerge: there are no ebuilds to satisfy "moo"
Last edited by coolsnowmen on Tue Jul 08, 2008 4:49 pm; edited 1 time in total |
|
Back to top |
|
|
zixnub n00b
Joined: 27 Dec 2007 Posts: 67 Location: Brasschaat, Belgium
|
Posted: Tue Jul 08, 2008 4:27 pm Post subject: Re: C++ compiler for gentoo (and/or tips :D) |
|
|
cuchumino wrote: | ok... so i wrote c++ a VERY long time ago. That is, I programmed in 2000, and... the software i used was a very old compiler that was used in school at that time.
Question is, I never really did get to use any of the new compilers. So, i would like to know if there are any compilers in gentoo. I know there is a java compiler called Netbeans, and i also know that it has c++ option. But are there any others?
I have been trying to compile some dumb code, and i added typical Code: | #include <iostream.h> | to the beginning of the code to add the iostream library. But for some reason it is not there, and hence my code does not compile.
Anyway, any help will be appreciated |
netbeans is an ide developed with help from sun for java, the compiler is javac (sun) or others (like jikes from ibm, gcj from the gnu project etc.)
g++ is basicly the standard linux c++ compiler, which is basicly gcc (gnu compiler collection). _________________ https://github.com/udevbe/greenfield
https://github.com/udevbe/westfield |
|
Back to top |
|
|
Link31 Apprentice
Joined: 17 Apr 2006 Posts: 200 Location: France
|
|
Back to top |
|
|
coolsnowmen Veteran
Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Wed Jul 09, 2008 5:18 pm Post subject: |
|
|
that is a cool link, but I'ld still like to know what the purpose / used functions were.
If you were drawing windows on the screen, then ncurses/conio->ncurses would need to be looked at. But conio was used for other things that wouldn't require it at all, like getting characters from the keyboard.
http://cboard.cprogramming.com/showthread.php?t=27714 _________________ emerge: there are no ebuilds to satisfy "moo" |
|
Back to top |
|
|
cuchumino Guru
Joined: 24 Nov 2004 Posts: 428
|
Posted: Wed Jul 16, 2008 8:10 pm Post subject: |
|
|
Thanks guys.
Hmmm, it seems that the course I am taking atm is using borland C++ and well, they are using it on windows, so windows libraries are in effect to my dismay.
Either way, thanks for the work arounds. -I will try them out. |
|
Back to top |
|
|
|