Précédent   Forum du club des développeurs et IT Pro > C et C++ > Outils pour C & C++ > Code::Blocks
Code::Blocks Forum d'entraide sur Code::Blocks. Avant de poster -> FAQ Code::Blocks
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 21/04/2012, 00h53   #1
Lintel-oo
Membre habitué
 
Homme
Étudiant
Inscription : avril 2011
Messages : 239
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : avril 2011
Messages : 239
Points : 128
Points : 128
Par défaut Nombreuses erreurs de link glew

Bonjour à tous,
je fais appel à vous pour un problème de link qui commence à me prendre la tête voila 2 jours . Je compile sous linux 11.10 avec codeblocks et gcc, le problème vient de glew.c qui me fournit une bonne quantité de messages d'erreurs classiques :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
Compiling: glew.c
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:920:1: erreur: unknown type name ‘PFNGLPROGRAMENVPARAMETERS4FVPROC’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:920:66: attention : initialization makes integer from pointer without a cast [enabled by default]
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:921:1: erreur: unknown type name ‘PFNGLPROGRAMLOCALPARAMETERS4FVPROC’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:921:70: attention : initialization makes integer from pointer without a cast [enabled by default]
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:1054:1: erreur: unknown type name ‘PFNGLGETPOINTERVEXTPROC’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:1054:48: attention : initialization makes integer from pointer without a cast [enabled by default]
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c: In function ‘_glewInit_GL_EXT_gpu_program_parameters’:
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:3369:9: erreur: ‘glProgramEnvParameters4fv’ undeclared (first use in this function)
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:3369:9: note: each undeclared identifier is reported only once for each function it appears in
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:3369:38: erreur: ‘PFNGLPROGRAMENVPARAMETERS4FVPROC’ undeclared (first use in this function)
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:3370:9: erreur: ‘glProgramLocalParameters4fv’ undeclared (first use in this function)
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:3370:40: erreur: ‘PFNGLPROGRAMLOCALPARAMETERS4FVPROC’ undeclared (first use in this function)
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c: In function ‘_glewInit_GL_EXT_vertex_array’:
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:3873:9: erreur: ‘glGetPointervEXT’ undeclared (first use in this function)
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:3873:29: erreur: ‘PFNGLGETPOINTERVEXTPROC’ undeclared (first use in this function)
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c: In function ‘glewContextInit’:
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5302:5: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_1’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5305:7: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_2’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5306:7: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_3’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5307:7: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_4’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5308:4: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_5’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5309:4: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_0’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5312:6: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_1’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5319:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_2’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5320:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_3’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5321:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_4’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5322:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_5’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5323:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_0’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5324:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_1’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5328:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_2’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5329:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_3’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5330:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_4’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5331:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_5’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5332:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_0’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5333:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_1’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5337:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_2’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5338:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_3’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5339:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_4’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5340:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_5’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5341:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_0’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5342:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_1’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5346:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_2’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5347:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_3’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5348:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_4’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5349:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_5’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5350:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_0’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5351:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_1’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5355:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_2’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5356:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_3’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5357:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_4’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5358:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_1_5’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5359:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_0’
/home/julien/Documents/OpenGL+SDL/Particules3DGenerator/glew.c:5360:3: erreur: assignment of read-only location ‘*(const GLboolean *)&__GLEW_VERSION_2_1’
Je n'ai sans doute pas assez posté d'infos pour que vous puissiez m'aider mais on ne sait jamais
Si vous voulez plus d'infos n'hesitez pas a me les demander !
Lintel-oo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 21/04/2012, 01h16   #2
Lintel-oo
Membre habitué
 
Homme
Étudiant
Inscription : avril 2011
Messages : 239
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : avril 2011
Messages : 239
Points : 128
Points : 128
Eh bien finalement ces erreurs étaient simplement dues à ma bêtise : j'avais oublié que j'étais sous linux et que par conséquent le fichier glew.c n'avait pas besoin d'être ajouté au projet

Tant de temps passé à résoudre un problème aussi c**
Sujet résolu
Lintel-oo est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 16h38.


 
 
 
 
Partenaires

Hébergement Web