PDA

View Full Version : Need help for a newbie



ccsophea
02-03-2005, 09:51 PM
Dear all,

I am very new to OpenGL ES. I know a bit about OpenGL and want to learn OpenGL ES. I downloaded "gerbera-2.0.4-es-1.1-win32-bin-non-commercial".

I had VC++ 6 install in my notebook.

I copile "sample.c". It could be compiled but when I click build it shows many errors.

sample.obj : error LNK2001: unresolved external symbol __imp__eglTerminate
sample.obj : error LNK2001: unresolved external symbol __imp__eglDestroySurface
sample.obj : error LNK2001: unresolved external symbol __imp__eglDestroyContext
sample.obj : error LNK2001: unresolved external symbol __imp__eglMakeCurrent
sample.obj : error LNK2001: unresolved external symbol __imp__eglCreateWindowSurface
sample.obj : error LNK2001: unresolved external symbol __imp__eglCreateContext
sample.obj : error LNK2001: unresolved external symbol __imp__eglChooseConfig
sample.obj : error LNK2001: unresolved external symbol __imp__eglInitialize
sample.obj : error LNK2001: unresolved external symbol __imp__eglGetConfigs
sample.obj : error LNK2001: unresolved external symbol __imp__eglGetDisplay
sample.obj : error LNK2001: unresolved external symbol __imp__eglSwapBuffers
sample.obj : error LNK2001: unresolved external symbol __imp__glDrawElements
sample.obj : error LNK2001: unresolved external symbol __imp__glRotatef
sample.obj : error LNK2001: unresolved external symbol __imp__glTranslatef
sample.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity
sample.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode
sample.obj : error LNK2001: unresolved external symbol __imp__glNormalPointer
sample.obj : error LNK2001: unresolved external symbol __imp__glVertexPointer
sample.obj : error LNK2001: unresolved external symbol __imp__glClear
sample.obj : error LNK2001: unresolved external symbol __imp__glClearColor
sample.obj : error LNK2001: unresolved external symbol __imp__glEnableClientState
sample.obj : error LNK2001: unresolved external symbol __imp__glColor4x
sample.obj : error LNK2001: unresolved external symbol __imp__glShadeModel
sample.obj : error LNK2001: unresolved external symbol __imp__glHint
sample.obj : error LNK2001: unresolved external symbol __imp__glClearDepthf
sample.obj : error LNK2001: unresolved external symbol __imp__glDepthMask
sample.obj : error LNK2001: unresolved external symbol __imp__glDisable
sample.obj : error LNK2001: unresolved external symbol __imp__glEnable
sample.obj : error LNK2001: unresolved external symbol __imp__glMaterialfv
sample.obj : error LNK2001: unresolved external symbol __imp__glLightfv
sample.obj : error LNK2001: unresolved external symbol __imp__glScissor
sample.obj : error LNK2001: unresolved external symbol __imp__glViewport
sample.obj : error LNK2001: unresolved external symbol __imp__glFrustumf
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/sample.exe : fatal error LNK1120: 34 unresolved externals
Error executing link.exe.

sample.exe - 35 error(s), 0 warning(s)

Could anyone help me to solve this problem?

Thank you very much.

Sophea

eminemence
02-06-2005, 08:48 PM
Paste the .lib file into the vc6 lib folder.
Bye.
--eminemence.

ccsophea
02-07-2005, 12:06 AM
I already copied "libGLES_CM.lib" to the lib folder in VC++. It could be compiled but when i click build it generates errors as shown below:

--------------------Configuration: sample - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/sample.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

sample.exe - 2 error(s), 0 warning(s)

Could you help me to fix this problem?

Thank you very much.

Sophea