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();
}


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?

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.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.