Installer GTK avce visual C++
aragorn
-
saga9 Messages postés 5912 Date d'inscription Statut Contributeur Dernière intervention -
saga9 Messages postés 5912 Date d'inscription Statut Contributeur Dernière intervention -
bonjour,
j'ai téléchargé le package GTK pour windows, je voudrais l'installer sous visual C++. J'ai inclut les différentes bibliothèques et quand je compile j'ai aucune erreur mais après kan je linke j'ai 12 erreure du type "error LNK2001: unresolved external symbol _gtk_main" Je ne vois pas comment résoudre ce problème
Merci pour l'aide apporter.
j'ai téléchargé le package GTK pour windows, je voudrais l'installer sous visual C++. J'ai inclut les différentes bibliothèques et quand je compile j'ai aucune erreur mais après kan je linke j'ai 12 erreure du type "error LNK2001: unresolved external symbol _gtk_main" Je ne vois pas comment résoudre ce problème
Merci pour l'aide apporter.
A voir également:
- Installer GTK avce visual C++
- Visual c++ 2019 - Guide
- Installer clavier arabe - Télécharger - Divers Web & Internet
- Installer windows 10 sans compte microsoft - Guide
- Installer chromecast sur tv - Guide
- Installer windows 10 gratuitement - Accueil - Mise à jour
3 réponses
Salut,
as tu bien suivis la demarche d'installation et de configuration?
Voici ce que j'ai trouvé sur http://www.dropline.net/gtk/support.php:
Tips for MSCV Users
Contributed by Bill Nalen
Download and install the developer package as above. I will use c:\gtk2dev\ as the install point, substitute your directory as needed.
Compile Options:
I prefer to use the additional include path in the preprocessor section of the C/C++ tab. The Additional Include Directories box should include the following:
C:\GTK2DEV\INCLUDE\GTK-2.0,C:\GTK2DEV\LIB\GTK-2.0\INCLUDE,C: \GTK2DEV\INCLUDE\GLIB-2.0,C:\GTK2DEV\LIB\GLIB-2.0\INCLUDE,C: \GTK2DEV\INCLUDE\PANGO-1.0,C:\GTK2DEV\INCLUDE\ATK-1.0,c:\gtk2dev\include
The Code Generation item should use the multi-threaded dll (debug or normal) in the run-time library drop down.
Link Options:
On the Link tab on the Input drop down page, we need to fill in the Object/Library modules and add the path to the Additional Library Path. Add the following to the Object/Library Modules line:
glib-2.0.lib gtk-win32-2.0.lib gdk-win32-2.0.lib gobject-2.0.lib gdk_pixbuf-2.0.lib gthread-2.0.lib gmodule-2.0.lib pango-1.0.lib
You may also need intl.lib on this line.
The Additional Library Path statement just needs:
C:\GTK2DEV\LIB
I may have missed some libraries that you may need to compile but you should be able to add those easily. You could also add the paths above to the libraries and include items under Tools - Options - Directories.
as tu bien suivis la demarche d'installation et de configuration?
Voici ce que j'ai trouvé sur http://www.dropline.net/gtk/support.php:
Tips for MSCV Users
Contributed by Bill Nalen
Download and install the developer package as above. I will use c:\gtk2dev\ as the install point, substitute your directory as needed.
Compile Options:
I prefer to use the additional include path in the preprocessor section of the C/C++ tab. The Additional Include Directories box should include the following:
C:\GTK2DEV\INCLUDE\GTK-2.0,C:\GTK2DEV\LIB\GTK-2.0\INCLUDE,C: \GTK2DEV\INCLUDE\GLIB-2.0,C:\GTK2DEV\LIB\GLIB-2.0\INCLUDE,C: \GTK2DEV\INCLUDE\PANGO-1.0,C:\GTK2DEV\INCLUDE\ATK-1.0,c:\gtk2dev\include
The Code Generation item should use the multi-threaded dll (debug or normal) in the run-time library drop down.
Link Options:
On the Link tab on the Input drop down page, we need to fill in the Object/Library modules and add the path to the Additional Library Path. Add the following to the Object/Library Modules line:
glib-2.0.lib gtk-win32-2.0.lib gdk-win32-2.0.lib gobject-2.0.lib gdk_pixbuf-2.0.lib gthread-2.0.lib gmodule-2.0.lib pango-1.0.lib
You may also need intl.lib on this line.
The Additional Library Path statement just needs:
C:\GTK2DEV\LIB
I may have missed some libraries that you may need to compile but you should be able to add those easily. You could also add the paths above to the libraries and include items under Tools - Options - Directories.