Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errore Gcc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
pistodj
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 229

PostPosted: Wed Feb 02, 2005 6:16 pm    Post subject: Errore Gcc Reply with quote

Salve Ho un problema in gcc!!

ho appena creato un semplicissimo file cpp che compilo con il comano
gcc ok.cpp -lstdc++ && /a.out
Il file e' un semplicissimo hello world!!


#include <stdio.h>


int main (void)
{
printf("Hello world!");
return 0;

}

l'errore e' segmentation fault.
ho notato pero' che se lo compilo da X mi funziona...

Avete idee del motivo??

Grazie!!
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Feb 02, 2005 6:18 pm    Post subject: Reply with quote

Hai provato ad usare g++ ?
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Wed Feb 02, 2005 6:19 pm    Post subject: Reply with quote

Che vuol dire che se lo compili da X funziona? Comunque a me va e non da segfault
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pistodj
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 229

PostPosted: Wed Feb 02, 2005 7:01 pm    Post subject: Reply with quote

si ho appena provato con g++ e non mi va ...

Da X mi compila senza errore e' quello che non capisco!!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Wed Feb 02, 2005 7:03 pm    Post subject: Reply with quote

Solo per precisazione quello e' solo c e non c++
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pistodj
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 229

PostPosted: Wed Feb 02, 2005 7:32 pm    Post subject: Reply with quote

Hai pienamente ragione, in realta' il file comprende classi che come vedi dal file vencono ignorate dato che neanche vendono mai eseguite se dici ti do il file ma e' un po lunghetto...
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Wed Feb 02, 2005 7:33 pm    Post subject: Reply with quote

prova a mandarmi tutto via mail che cosi' provo a complilare
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pistodj
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 229

PostPosted: Wed Feb 02, 2005 8:48 pm    Post subject: Reply with quote

Nn ho la tua mail ... me la puoi dare??
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Wed Feb 02, 2005 9:18 pm    Post subject: Reply with quote

pistodj wrote:
Nn ho la tua mail ... me la puoi dare??

Ci sono i pulsantini alla fine di ogni post e trovi anche quello dell'email
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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