Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: problem of compilation with intel visual fortran

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2010
    Posts
    5

    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

  2. #2
    Junior Member Newbie vegan's Avatar
    Join Date
    Sep 2010
    Location
    Victorria, BC Canada
    Posts
    1

    Re: problem of compilation with intel visual fortran

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

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2010
    Posts
    5

    Re: problem of compilation with intel visual fortran

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •