Thread: Canīt get glut work with mine BORLAND compiler

  1. #1
    Veni Vidi Vice
    Join Date
    Aug 2001
    Posts
    343

    Canīt get glut work with mine BORLAND compiler

    Iīve been having this trouble for a long time and still I canīt fix it. Iīve downloaded every glut.lib and glut.h file that exits on the net (feels that way). When I compile my code it doesnt generate any errors, but when I try to run it, the compiler complains "glut32.lib contains invalid OMF record, type 0x21". Iīve tried to use implib but still getting the same problem. Im out of options now and donīt know what to do next. Does anybody have any suggestions or maybe somebody has had the same problem??? Need serious help.

    Compiler: Borland C++ 5.02

    Thx in advance

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Ive had that problem before.

    The error is caused because the .lib files that you are linking are designed for msvc, not borland.

    Delete the glut.lib files, and use the thing that comes with borland to make new ones.

  3. #3
    Veni Vidi Vice
    Join Date
    Aug 2001
    Posts
    343
    Well I used implib for make a new glut32.lib but the problem still remains. If I understand it right you make lib-files out of dll-files. Iīve searched on glut32.dll (on my computer) and got 5 different(size) glut32.dll files . Which of them should I choose???

    Thx in advance

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    i would use this one,

    http://www.xmission.com/~nate/glut.html

    and to make sure put the glut32.dll in the directory of your .exe file.

  5. #5
    Veni Vidi Vice
    Join Date
    Aug 2001
    Posts
    343

    Question

    Downloaded the files and still have the same error. Maybe Iīm doing something wrong??? Iīm using the implib and it generates en new lib file. Then I copy all dll files to win/system and all lib-files+glut32.dll to my projekt directory and still doesnt work(all lib-files I put in /bc5/lib). Dont really know what to do now????

    Maybe you have some code and files that are nessesary to run glut??? It would help me alot :-) and spare some time (have looked for this file for 2,5 week now).

    Thx in advance

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    i use msvc now, and i dont have any of my old stuff from borland.

    Honestly i dont even use glut anymore. Perhaps you should try my GLH library. home.earthlink.net/~eberkain/

    as for more help, try asking on nehe.gamedev.net's forum

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The Bludstayne Open Works License
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-26-2003, 11:05 AM
  2. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM