Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C++ compiler for gentoo (and/or tips :D)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
cuchumino
Guru
Guru


Joined: 24 Nov 2004
Posts: 428

PostPosted: Mon Jul 07, 2008 1:42 am    Post subject: C++ compiler for gentoo (and/or tips :D) Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Jul 07, 2008 2:00 am    Post subject: Re: C++ compiler for gentoo (and/or tips :D) Reply with quote

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
Code:
# c++ -v
Back to top
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Mon Jul 07, 2008 3:30 am    Post subject: Re: C++ compiler for gentoo (and/or tips :D) Reply with quote

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
View user's profile Send private message
cuchumino
Guru
Guru


Joined: 24 Nov 2004
Posts: 428

PostPosted: Mon Jul 07, 2008 3:38 am    Post subject: Reply with quote

ahh yes thanks.

And i saw that i had another problem in the code.

Code:
#include <conio.h>


It is for windows so i have read. so how do I call the linux library that is the analogous?
Back to top
View user's profile Send private message
node_one
Apprentice
Apprentice


Joined: 07 Apr 2008
Posts: 165

PostPosted: Mon Jul 07, 2008 6:03 am    Post subject: Reply with quote

There is ncurses if you are looking for console "graphics." I do not know much about it.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Tue Jul 08, 2008 6:58 am    Post subject: Re: C++ compiler for gentoo (and/or tips :D) Reply with quote

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
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Tue Jul 08, 2008 7:08 am    Post subject: Reply with quote

cuchumino wrote:
ahh yes thanks.

And i saw that i had another problem in the code.

Code:
#include <conio.h>


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
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 67
Location: Brasschaat, Belgium

PostPosted: Tue Jul 08, 2008 4:27 pm    Post subject: Re: C++ compiler for gentoo (and/or tips :D) Reply with quote

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
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Wed Jul 09, 2008 10:09 am    Post subject: Reply with quote

cuchumino wrote:
And i saw that i had another problem in the code.
Code:
#include <conio.h>

It is for windows so i have read. so how do I call the linux library that is the analogous?

http://www.ibiblio.org/pub/Linux/libs/ui/linux-conio-1.02.tgz (basically a wrapper for ncurses)
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Wed Jul 09, 2008 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
cuchumino
Guru
Guru


Joined: 24 Nov 2004
Posts: 428

PostPosted: Wed Jul 16, 2008 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum