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 2 of 2

Thread: Error on a project simple

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2012
    Posts
    1

    Error on a project simple

    I wrote the easiest program but i get error:
    void CTesteDlg::OnBnClickedButton1()
    {
    // TODO: Add your control notification handler code here
    auxInitDisplayMode(AUX_SINGLE|AUX_RGBA);
    auxInitPosition(100,100,250,250);
    auxInitWindow("yes");
    glClearColor(0.0f,0.0f,1.0f,1.0f);
    glClear(GL_COLOR_BUFFER_BIT);
    glFlush();
    }

    Code :
    Error	1	error LNK2019: unresolved external symbol _auxInitWindowA@4 referenced in function "public: void __thiscall CTesteDlg::OnBnClickedButton1(void)" (?OnBnClickedButton1@CTesteDlg@@QAEXXZ)	TesteDlg.obj	Teste
     
     
    Error	2	error LNK2019: unresolved external symbol _auxInitPosition@16 referenced in function "public: void __thiscall CTesteDlg::OnBnClickedButton1(void)" (?OnBnClickedButton1@CTesteDlg@@QAEXXZ)	TesteDlg.obj	Teste
     
     
    Error	3	error LNK2019: unresolved external symbol _auxInitDisplayMode@4 referenced in function "public: void __thiscall CTesteDlg::OnBnClickedButton1(void)" (?OnBnClickedButton1@CTesteDlg@@QAEXXZ)	TesteDlg.obj	Teste
     
     
    Error	4	fatal error LNK1120: 3 unresolved externals	C:\Documents and Settings\Nutzu\My Documents\Visual Studio 2008\Projects\Teste\Debug\Teste.exe	Teste

    what happens?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2009
    Location
    Poland
    Posts
    111
    Hi,

    Include glaux.lib (or dll) in linker options.

    You should replace glaux with another lib (glut,sdl?),
    glaux has not been updated for years.

Posting Permissions

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