Thread: nehe opengl prob

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    nehe opengl prob

    Linker options.

    I followed instructions on a post i found through search, but it didn't help..

    it told me to link the first 5 library items in /lib/ , and then a 6th. but i still have


    Code:
    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\bin\Makefile.win"
    Executing  make...
    make.exe -f "C:\Dev-Cpp\bin\Makefile.win" all
    g++.exe main.o  -o "opengl_bs.exe" -L"C:/Dev-Cpp/lib" -mwindows ../lib/libgdi32.a ../lib/libavifil32.a ../lib/libaclui.a ../lib/libadvapi32.a ../lib/libapcups.a ../lib/libavicap32.a  
    
    main.o(.text+0x31):main.cpp: undefined reference to `glViewport@16'
    main.o(.text+0x40):main.cpp: undefined reference to `glMatrixMode@4'
    main.o(.text+0x48):main.cpp: undefined reference to `glLoadIdentity@0'
    main.o(.text+0x76):main.cpp: undefined reference to `gluPerspective@32'
    main.o(.text+0x85):main.cpp: undefined reference to `glMatrixMode@4'
    main.o(.text+0x8d):main.cpp: undefined reference to `glLoadIdentity@0'
    main.o(.text+0xa2):main.cpp: undefined reference to `glShadeModel@4'
    main.o(.text+0xcd):main.cpp: undefined reference to `glClearColor@16'
    main.o(.text+0xda):main.cpp: undefined reference to `glClearDepth@8'
    main.o(.text+0xe9):main.cpp: undefined reference to `glEnable@4'
    main.o(.text+0xf8):main.cpp: undefined reference to `glDepthFunc@4'
    main.o(.text+0x10f):main.cpp: undefined reference to `glHint@8'
    main.o(.text+0x12c):main.cpp: undefined reference to `glClear@4'
    main.o(.text+0x134):main.cpp: undefined reference to `glLoadIdentity@0'
    main.o(.text+0x192):main.cpp: undefined reference to `wglMakeCurrent@8'
    main.o(.text+0x1cd):main.cpp: undefined reference to `wglDeleteContext@4'
    main.o(.text+0x725):main.cpp: undefined reference to `wglCreateContext@4'
    main.o(.text+0x787):main.cpp: undefined reference to `wglMakeCurrent@8'
    collect2: ld returned 1 exit status
    
    make.exe: *** [opengl_bs.exe] Error 1
    
    Execution terminated
    Last edited by bluehead; 03-23-2005 at 12:15 AM.
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    Banned
    Join Date
    Oct 2004
    Posts
    250
    Have you got the Lib/Header files you need? you cant link them if you dont have them.

  3. #3
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Code:
    #pragma comment(lib, "OpenGL32.lib")
    You need that in there somewhere.


    -edit-
    Assuming you haven't added the library in your project settings somewhere already.

  4. #4
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    yea i just figured it out. it was, libopengl32 and libglu32. I'm stupid for not seeing it earlier
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  5. #5
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    k, new problem,

    when trying to load a texture to a 3-dimensional cube, i get this error message (using dev C++)

    32 C:\Dev-Cpp\bin\main.cpp expected constructor, destructor, or type conversion before '*' token
    line 32:
    Code:
    AUX_RGBImageRec *LoadBMP(char *Filename)
    once again, from NeHe's opengl tutorial.
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  6. #6
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    Dev-C++ does not have the <glaux.h> header file because glaux is outdated.

    NeHe has posted a replacement bitmap loader.. There is also glbmp.

  7. #7
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    Wow, this seems like a whole lot of trouble about something that I really don't care about doing.

    I really don't need this, if I'm just loading in models and worlds now, do i?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL prob
    By HQSneaker in forum Game Programming
    Replies: 18
    Last Post: 06-22-2006, 12:55 PM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. NeHe OpenGL Tut Dont Compile.
    By oobootsy1 in forum C++ Programming
    Replies: 3
    Last Post: 03-08-2004, 10:21 PM
  4. opengl Nehe tutorial errors when compiling
    By gell10 in forum Game Programming
    Replies: 4
    Last Post: 07-14-2003, 08:09 PM
  5. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM