Page 1 of 1

1>supportcode.error LNK2019: unresolved external symbol

Posted: Mon Nov 12, 2012 10:17 am
by Dawei Jiang
error code:
1>supportcode.obj : error LNK2019: unresolved external symbol __imp__glOrtho@48 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
1>supportcode.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
1>supportcode.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
1>supportcode.obj : error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
1>supportcode.obj : error LNK2019: unresolved external symbol __imp__glHint@8 referenced in function "int __cdecl InitGL(void)" (?InitGL@@YAHXZ)
```````
When I try to build my own imageviewer program according to example MJPEGViewer, I got these error codes. I had add the CameraSDK\include and lib. What should I do to solve this? Thanks for your help!

Re: 1>supportcode.error LNK2019: unresolved external symbol

Posted: Mon Nov 12, 2012 11:58 am
by jolsonsalem
It is not finding the OpenGL libraries, you will have to add those as well.

Re: 1>supportcode.error LNK2019: unresolved external symbol

Posted: Mon Nov 12, 2012 3:50 pm
by Dawei Jiang
Thanks for your reply. But where are the OpenGL Libraries? I can't find them in the camera SDK folder.