Problem of compilation with intel visual fortran

Hello,

I have a C ++ program which uses glut and I compiled with Intel Fortran, in the compilation I had of problem of link’s edition .

please how make the link’s edition of glut in the bat file ( opengl32.lib, glut32.lib ,glu32.lib and glut.h, glu.h , gl.h and open32.dll, glut32.dll, glu32.dll)?

my linker error output is:

ExCarre.obj : error LNK2019: unresolved external symbol glutInit referenced in function main

VBATCH00.exe : fatal error LNK1120: 18 unresolved external

here is the content of the BAT file for compiling the code:

cl /nologo /c ExCarre.cpp

rem ifort /nologo /FeVBATCH00.exe /D_CRT_SECURE_NO_DEPRECATE ExCarre.obj %LINK_FNL% %LINK_SHARED%

ifort /nologo /FeVBATCH00.exe /D_CRT_SECURE_NO_DEPRECATE ExCarre.obj %LINK_FNL% OPENGL32.LIB glut32.lib GLU32.LIB

DEL ExCarre.obj

Thanks in advance

Can you post the details of all of the error messages, the crystal ball is a bit rusty today.

HELLO,
There are details of all of the error messages

C:\Documents and Settings\Administrator\Desktop\exemple opengl\ExC++Yosra>ifort
/nologo /FeVBATCH00.exe ExCarre.obj OPENGL32.lib GLUT32.lib glu32.lib /link /f
orce:multiple
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glFlush referenced
in function “void __cdecl affichage(void)” (?affichage@@YAXXZ)
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glEnd referenced i
n function “void __cdecl affichage(void)” (?affichage@@YAXXZ)
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glVertex2f referen
ced in function “void __cdecl affichage(void)” (?affichage@@YAXXZ)
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glColor3f referenc
ed in function “void __cdecl affichage(void)” (?affichage@@YAXXZ)
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glBegin referenced
in function “void __cdecl affichage(void)” (?affichage@@YAXXZ)
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glClear referenced
in function “void __cdecl affichage(void)” (?affichage@@YAXXZ)
ExCarre.obj : error LNK2019: unresolved external symbol glutPostRedisplay refere
nced in function “void __cdecl clavier(unsigned char,int,int)” (?clavier@@YAXEHH
@Z)
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glPolygonMode refe
renced in function “void __cdecl clavier(unsigned char,int,int)” (?clavier@@YAXE
HH@Z)
ExCarre.obj : error LNK2019: unresolved external symbol glutMainLoop referenced
in function main
ExCarre.obj : error LNK2019: unresolved external symbol glutKeyboardFunc referen
ced in function main
ExCarre.obj : error LNK2019: unresolved external symbol glutDisplayFunc referenc
ed in function main
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glPointSize refere
nced in function main
ExCarre.obj : error LNK2019: unresolved external symbol __imp_glClearColor refer
enced in function main
ExCarre.obj : error LNK2019: unresolved external symbol glutCreateWindow referen
ced in function main
ExCarre.obj : error LNK2019: unresolved external symbol glutInitWindowSize refer
enced in function main
ExCarre.obj : error LNK2019: unresolved external symbol glutInitWindowPosition r
eferenced in function main
ExCarre.obj : error LNK2019: unresolved external symbol glutInitDisplayMode refe
renced in function main
ExCarre.obj : error LNK2019: unresolved external symbol glutInit referenced in f
unction main
VBATCH00.exe : fatal error LNK1120: 18 unresolved externals

C:\Documents and Settings\Administrator\Desktop\exemple opengl\ExC++Yosra>DEL Ex
Carre.obj

C:\Documents and Settings\Administrator\Desktop\exemple opengl\ExC++Yosra>

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.