Page 1 of 1

Link error on WM5 compiled with vs2005

PostPosted: Jun 4, 2007 @ 6:10pm
by enry
I'm getting a link error on vs2005 compiling my app for WM5 pocket pc device....

1>Linking...
1>edge.lib(emod_std.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(esurf_3d.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(emod_sound.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(emod_connect.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(esurf_2d.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(edge.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(esurf_2drgba.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(emod_file.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
1>edge.lib(emod_console.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_sound.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_register.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_connect.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(eldr_tga.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(eldr_bmp.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_memory.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_device.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_input.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(eldr_gif.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(eldr_ms3d.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(eldr_jpg.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_file.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(eldr_png.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(eldr_3ds.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_std.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(esurf_2d.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_dsp.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(edge.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
1>edge.lib(emod_ini.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck

Now before anyone googles this and makes silly suggestions like adding or removing any combinations of libcmt, libcmtd, the std c++ library, /GS, /GS-, save your keyboard some wear because I've tried it.

Do I have to install VS.2005 SP1?

PostPosted: Jun 5, 2007 @ 8:06am
by edge
Hi Enry,

All libraries for EDGELIB 3.00 compiled with Visual Studio 2005 are made with service pack 1 installed. It seems that service pack 1 changes the format of the libraries.

You need to install service pack 1 to resolve the linker errors. I will add an FAQ entry on www.edgelib.com as well.

PostPosted: Jun 18, 2007 @ 8:34pm
by Ryumaster

PostPosted: Jun 19, 2007 @ 2:23pm
by edge
Hi Ruymaster,

That's strange, perhaps rebuilding the application may solve the linker errors (use build -> rebuild solution from the menu)?

Are you able to successfully rebuild the Helloworld sample, delivered with the SDK, or does it give the same result?

PostPosted: Jun 20, 2007 @ 10:00am
by Ryumaster
Helloword gives me the same result. HMMM, this error has nothing to do with edglib - that is for sure, so I'll try reinstalling everything - maybe it will help :(. Very strange...

PostPosted: Jun 25, 2007 @ 1:24pm
by edge
Hi Ruymaster, Enry,

Were you able to solve the problem in the mean time?

PostPosted: Jun 26, 2007 @ 1:06pm
by Ryumaster
Hi! Nope. There is solution on official Microsoft MSDN, stating that I need to force include libcmt.lib. I did it, but with no luck again. At this moment I'm downloading pirate version ov VS2005 Pro and Service Pack seperatly to check out is the prolem really in my version of VS.

PostPosted: Jun 26, 2007 @ 3:17pm
by edge

PostPosted: Jun 27, 2007 @ 7:52pm
by Ryumaster
Yes, the path was set correct. Anyway, afted I installed VS2005 PRo Sp1, it worked for me. Probably smthng not right with Team Suit version, or I do not know.

PostPosted: Jun 28, 2007 @ 10:54am
by edge