Page 1 of 1

Help - Building View3D

PostPosted: Nov 15, 2007 @ 11:51am
by gedimaster
Hi,

I'm using VC++ Express on XP Pro. I've installed the platform SDK, VC++ SP1 etc.

i've checked my link directories and they are correct. i've included edge.lib, edgerender.lib and plugingl.lib for the link options.

There seems to be some problem with PLUGINGL.LIB.

Can someone offer some help here? Thanks in advance

The errors i've encountered are

1>Linking...
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>plugingl.lib(wrap_gl.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "private: bool __thiscall EdgeGLInterface::FindConfig(unsigned char,unsigned long,unsigned long,bool)" (?FindConfig@EdgeGLInterface@@AAE_NEKK_N@Z)
1>plugingl.lib(wrap_gl.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "private: bool __thiscall EdgeGLInterface::FindConfig(unsigned char,unsigned long,unsigned long,bool)" (?FindConfig@EdgeGLInterface@@AAE_NEKK_N@Z)
1>plugingl.lib(wrap_gl.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "public: void __thiscall EdgeGLInterface::Flip(void)" (?Flip@EdgeGLInterface@@QAEXXZ)

PostPosted: Nov 16, 2007 @ 10:20am
by edge
Hi Gedimaster,

It seems that your OpenGL library doesn't implement all functions needed to link the executable. I've attached our own OpenGL library which should have all these functions implemented.

Could you try the attached library and see if it works better?

PostPosted: Nov 20, 2007 @ 3:46am
by gedimaster
Hi, thanks. i replaced my opengl32.lib from my windows/system32 folder with the opengl32.lib that you provided. it still didn't work...

any other idea?

PostPosted: Nov 20, 2007 @ 2:32pm
by edge

PostPosted: Nov 22, 2007 @ 3:08am
by gedimaster
yes, i did link it with plugingl.lib. but the same error still exists. do you have a VC++ solution file that i can perhaps try with?

PostPosted: Nov 22, 2007 @ 8:49am
by edge
Hi Gedimaster,

You can open the View3D solution in the EDGELIB samples folder. This sample uses OpenGL by default. Are you able to recompile and link the executable?

PostPosted: Nov 22, 2007 @ 9:48am
by gedimaster
Yes, i'm already using the view3D solution file. i've checked many times my lib folders and the lib files which are required (edgerender.lib and plugingl.lib) but still the same link errors...
also installed the opengl32.lib you sent me.

is plugingl supposed to reference a certain version of opengl32? the problems come from plugingl.lib...

PostPosted: Nov 22, 2007 @ 12:32pm
by edge
The only thing I can think of is that the library doesn't work with your version of Visual Studio. Can you tell me which version you're using? Perhaps switching between the pc-x86 and pc-x86_vc2005 libraries will help?

PostPosted: Nov 23, 2007 @ 6:40am
by gedimaster

PostPosted: Nov 23, 2007 @ 10:00am
by edge