TRADUCTION POUR NOOB ! BESOIN D'AIDE PZ !

frysa Messages postés 13 Date d'inscription mardi 31 décembre 2002 Statut Membre Dernière intervention 24 avril 2003 - 24 avril 2003 à 19:53
recherchelesavoir Messages postés 13 Date d'inscription lundi 28 juillet 2003 Statut Membre Dernière intervention 6 juin 2005 - 6 juin 2005 à 19:16
Bon apres des nuit pour découvrir comme installer les lib pour opengl ... je trouve enfin, mais une fois installé ils me donnent l'érreur.

"[LinkerError]'d:\other\tools\cbuilder\lib\glut32.lib' contains invalid OMF record, type 0x21 (possibly COFF)."

Apres des heures de recherche, j'ai trouvé que c'est parce que le glut32.lib a été crée pour visual c++ et que moi j'utilise Broland et il y a un conflit comme le dit : http://forums.belution.com/en/opengl/000/000/37.shtml
ET
http://ucsub.colorado.edu/~macklem/borland.html

Ils expliquent la façon pour résoudre le problème mais moi je
C O M P R E N D R I E N !!

--->

During linking, I get the error:
'C:\BC5\LIB\OPENGL32.LIB' contains invalid OMF record, type 0x21

This means you have used the library from Visual C++ and not recreated a library for
Borland from the Windows DLL file. Perform the following:
cd \bc5\lib
implib opengl32.lib c:\windows\system\opengl32.dll

2 réponses

crocejf2000 Messages postés 260 Date d'inscription lundi 27 janvier 2003 Statut Membre Dernière intervention 27 août 2008 1
25 avril 2003 à 08:08
Ca qu'il y a a comprendre est que les lib pour Borland ne sont pas les memes que pour Visual, il me semble qu'il y a moyen des les convertir pour les rendre compatible, sinon trouve toi les bonne lib...
a+,Hart
0
recherchelesavoir Messages postés 13 Date d'inscription lundi 28 juillet 2003 Statut Membre Dernière intervention 6 juin 2005
6 juin 2005 à 19:16
j'ai deja repondu comment resource se probleme sur se site donc revoici



Voici un résumé



Installer le compilateur:



télécharger sur le site de borland le compilateur et el debuger

puis installer les:



freecommandLinetools .exe

TurboDebugger.exe



créer deux fichiers (au format text):



dans -> ilink32.cfg



-L"c:\Borland\Bcc55\lib"



dans -> bcc32.cfg



-I"c:\Borland\Bcc55\include"

-L"c:\Borland\Bcc55\lib"





maintent au tour de l'opengl:

-Télécharger les fichier *.h;*.lib;*.dll de l'openGL



voici ceux que j'ai comme fichier:

dans c:\Borland\Bcc55\lib\

GLAUX.lib

GLU32.lib

glut.lib

glut32.lib

OPENGL32.lib



dans c:\Borland\Bcc55\include\

gl.h

glaux.h

glu.h

glut.h



dans c:\Windows\System\

GLU32.dll

glut.dll

glut32.dll

OPENGL32.dll



-ensuite dans une console, dans le repertoir c:\Borland\Bcc55\bin\ taper:



implib opengl32.lib c:\windows\system\opengl32.dll



puis



implib glut32.lib c:\windows\system\glut32.dll



Et voila le compilateur est enfin installé avec l'opengl



Maintent la syntax pour compiler, ceci est important:



exemple: pour compiler "monprogOPengl.cpp"



(dans une console taper)



c:\ bcc32 monprogOPengl.cpp glut32.lib



(si on ne met pas glut32.lib , on a erreur *winmain*,...)





voici quelque référence où j'ai trouvé la solution



http://www.gantless.com/borland.html

http://sbenavides.tripod.com/OpenGL.html
0
Rejoignez-nous