Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] Compilare un programma C++ & Gtkmm [RISOLTO]
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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
kNemo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 116

PostPosted: Mon Jun 14, 2004 7:07 am    Post subject: [OT] Compilare un programma C++ & Gtkmm [RISOLTO] Reply with quote

Come faccio a compilare un Programma fatto in C++ usando le Gtkmm ???
Con il solito comando g++ mi dice che non riesce a trovare le librerie...

Il Sorgente del Programma e' Questo (Ciao Mondo)
Code:

#include <gtkmm/main.h>
#include <gtkmm/window.h>

int main (int argc, char *argv[]) {
   Gtk::Main ex1(argc, argv);
   Gtk::Window window;

   Gtk::Main::run(window);

   return 0;
}


Grazie.
_________________
Powered by:
Gentoo Base System version 1.4.16 (Kernel 2.4.26-gentoo-r9)
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)

ScreenShot
http://gendevel.altervista.org/home.php?s=oth&p=screensht


Last edited by kNemo on Mon Jun 14, 2004 8:15 am; edited 1 time in total
Back to top
View user's profile Send private message
kNemo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 116

PostPosted: Mon Jun 14, 2004 7:51 am    Post subject: Reply with quote

Scusate avevo sbagliato a digitare...
Quote:

g++ hello.cc -o hello `pkg-config gtkmm-2.0 --cflags --libs`


http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch03.html
_________________
Powered by:
Gentoo Base System version 1.4.16 (Kernel 2.4.26-gentoo-r9)
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)

ScreenShot
http://gendevel.altervista.org/home.php?s=oth&p=screensht


Last edited by kNemo on Mon Jun 14, 2004 8:18 am; edited 1 time in total
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Mon Jun 14, 2004 8:04 am    Post subject: Reply with quote

kNemo wrote:
g++ hello.cc -o hello `pkg-config gtkmm-2.0 --cflags --libs`


quali librerie non trova?
_________________
Ciao da me!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 13200
Location: here

PostPosted: Mon Jun 14, 2004 8:24 am    Post subject: Reply with quote

[mod]
Ricordo che e' un forum che serve alla risoluzione a problemi relativi a gentoo. Lo dico perche' non e' il primo post che qualcuno chiede aiuto alla programmazione, non che la cosa mi disturbi e' solo che non voglio diventi un'abitudine.
[/mod]
_________________
"aspetto un'emozione sempre pi� indefinibile"
- CCCP -
"la libert� un doveroso pericolo in verit�"
- PGR -
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) Forum di discussione italiano 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