Results 1 to 2 of 2

Thread: error when compile in devc++ 4 and 5

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    3

    error when compile in devc++ 4 and 5

    iam trying to compile an example of a little sample in c that use opengl and glut, devcpp give me these errors:

    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xb5):bezmesh.c: undefined reference to `glEnable@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xc5):bezmesh.c: undefined reference to `glEnable@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xde):bezmesh.c: undefined reference to `glLightfv@12'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xf7):bezmesh.c: undefined reference to `glLightfv@12'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x110):bezmesh.c: undefined reference to `glMaterialfv@12'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x129):bezmesh.c: undefined reference to `glMaterialfv@12'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x142):bezmesh.c: undefined reference to `glMaterialfv@12'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x15f):bezmesh.c: undefined reference to `glClear@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x167):bezmesh.c: undefined reference to `glPushMatrix@0'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x187):bezmesh.c: undefined reference to `glRotatef@16'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x19c):bezmesh.c: undefined reference to `glEvalMesh2@20'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1a4):bezmesh.c: undefined reference to `glPopMatrix@0'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1a9):bezmesh.c: undefined reference to `glFlush@0'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1bf):bezmesh.c: undefined reference to `glClearColor@16'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1cc):bezmesh.c: undefined reference to `glEnable@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1f7):bezmesh.c: undefined reference to `glMap2f@40'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x207):bezmesh.c: undefined reference to `glEnable@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x217):bezmesh.c: undefined reference to `glEnable@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x234):bezmesh.c: undefined reference to `glMapGrid2f@24'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x26b):bezmesh.c: undefined reference to `glViewport@16'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x27:bezmesh.c: undefined reference to `glMatrixMode@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x280):bezmesh.c: undefined reference to `glLoadIdentity@0'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x2e9):bezmesh.c: undefined reference to `glOrtho@48'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x34d):bezmesh.c: undefined reference to `glOrtho@48'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x35a):bezmesh.c: undefined reference to `glMatrixMode@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x362):bezmesh.c: undefined reference to `glLoadIdentity@0'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3ab):bezmesh.c: undefined reference to `glutInit@8'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3b:bezmesh.c: undefined reference to `glutInitDisplayMode@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3cd):bezmesh.c: undefined reference to `glutInitWindowSize@8'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3dc):bezmesh.c: undefined reference to `glutInitWindowPosition@8'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3ed):bezmesh.c: undefined reference to `glutCreateWindow@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x402):bezmesh.c: undefined reference to `glutReshapeFunc@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x412):bezmesh.c: undefined reference to `glutDisplayFunc@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x422):bezmesh.c: undefined reference to `glutKeyboardFunc@4'
    D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x42a):bezmesh.c: undefined reference to `glutMainLoop@0'


    Anyone can help me. thank.

  2. #2
    Member Newbie
    Join Date
    Aug 2003
    Location
    asda
    Posts
    47

    Re: error when compile in devc++ 4 and 5

    You must link to the OpenGL and GLUT libraries. The library names should be libopengl32.a and glut32.a
    asd

Similar Threads

  1. Shader Compile Error: ERROR: 0:1: '' : syntax error #version
    By Blakeasd in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 07-25-2013, 07:35 PM
  2. Help I got error when it compile
    By zenki in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-16-2009, 06:55 AM
  3. ugh ... yet another error with DevC++
    By oGL_nEwB in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-02-2004, 12:39 PM
  4. Compile Error
    By cyclopentane in forum OpenGL: Linux
    Replies: 2
    Last Post: 10-10-2003, 08:39 AM
  5. Yet Another Compile Error
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-08-2001, 12:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean