Results 1 to 3 of 3

Thread: Help me plz

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    VietNam
    Posts
    2

    Help me plz

    In glu.h or glut.h just prototype not definition for functions so how could I call function? I miss some file? What file I need?
    When I start to compile there are many error:
    main.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
    main.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
    main.obj : error LNK2001: unresolved external symbol _glutSwapBuffers@0
    main.obj : error LNK2001: unresolved external symbol __imp__glClear@4
    main.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
    main.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
    main.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
    main.obj : error LNK2001: unresolved external symbol _glutInitWindowPosition@8
    main.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
    main.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
    main.obj : error LNK2001: unresolved external symbol _glutInit@8
    Debug/chapter2_1.exe : fatal error LNK1120: 11 unresolved externals
    Error executing link.exe.

    Give me a hand plz!!
    That's great

  2. #2
    Member Contributor
    Join Date
    Feb 2003
    Location
    Mitishy
    Posts
    59

    Re: Help me plz

    have you linked your app with gl libs?

    if not add this in your code:
    #pragma comment(lib, "opengl32.lib")
    #pragma comment(lib, "glu32.lib")
    #pragma comment(lib, "glut32.lib")
    or add theese libraries in your linker setup

    (names could vary(i mean different))

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    VietNam
    Posts
    2

    Re: Help me plz

    Thanks for your responde...
    That's great

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