PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Link error on WM5 compiled with vs2005

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?
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.
Hi, Edgelib!
I have downloaded trial version of Edgelib, and I have Visual Studio 2005 Team Suit with Service Pack 1 (KB926601), but I still get the same linker error. Just can't figure out why is it so.
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?
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...
Hi Ruymaster, Enry,

Were you able to solve the problem in the mean time?
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.
Ryumaster wrote: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.


Hi Ryumaster,

Maybe a silly suggestion, but did you change your linker settings (library directory) to the correct EDGELIB library directory? We get similar errors when we try to compile in VS2005 against the VisualC++ 6.0 EDGELIB libraries.

Please let us know here if you find something.

Regards,
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.
Glad this is resolved.