Bonjour
je cherche à remonter la fuite de mémoire ici :
http://www.developpez.net/forums/d13...fuite-memoire/
Je commence à faire un programme de base GTK avec code::blocks. Je prends le programme proposé par gtk et je vais essayer petit à petit de tout rajouter ce que j'ai mis dans mon programme jusqu'à générer à nouveau la fuite.
Le problème, c'est que dès le début ça plante ! J'ai des erreurs de compilation dans ce programme de test que je n'ai pas dans le programme principal. Que peut-il manquer ? Un include ? Pourtant j'ai bien "#include <gtk/gtk.h>" au début !
Voici les erreurs :nb : coup d’œil à http://www.developpez.net/forums/d13...10-gtk_stock_/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 /home/bs/Cours_IUT/info/test_gtk/main.c||In function main:| /home/bs/Cours_IUT/info/test_gtk/main.c|23|erreur: unknown type name GtkCssProvider| /home/bs/Cours_IUT/info/test_gtk/main.c|52|attention : implicit declaration of function gtk_css_provider_get_default [-Wimplicit-function-declaration]| /home/bs/Cours_IUT/info/test_gtk/main.c|52|attention : assignment makes pointer from integer without a cast [enabled by default]| /home/bs/Cours_IUT/info/test_gtk/main.c|53|attention : implicit declaration of function gtk_css_provider_load_from_path [-Wimplicit-function-declaration]| /home/bs/Cours_IUT/info/test_gtk/main.c|59|attention : implicit declaration of function gtk_style_context_add_provider_for_screen [-Wimplicit-function-declaration]| /home/bs/Cours_IUT/info/test_gtk/main.c|59|attention : implicit declaration of function GTK_STYLE_PROVIDER [-Wimplicit-function-declaration]| /home/bs/Cours_IUT/info/test_gtk/main.c|59|erreur: GTK_STYLE_PROVIDER_PRIORITY_APPLICATION undeclared (first use in this function)| /home/bs/Cours_IUT/info/test_gtk/main.c|59|note: each undeclared identifier is reported only once for each function it appears in| ||=== Build finished: 7 errors, 0 warnings (0 minutes, 0 seconds) ===|
Le programme GTK de base proposé par code::blocks a l'instruction suivante : button = gtk_button_new_from_stock (GTK_STOCK_DIALOG_INFO); .
Partager