__cdecl OsLoadLibrary(char const *)" (?OsLoadLibrary@@YA?A"> MS4.1 Link errors | Torque Game Engine Advanced | Forums | Community | GarageGames.com

Game Development Community

MS4.1 Link errors

by Playware · in Torque Game Engine Advanced · 11/10/2006 (12:35 am) · 15 replies

I just downloaded the 4.1 and tried to compile it under VS2005.

However, it has got problem linking

gfxD3DDevice.obj : error LNK2019: unresolved external symbol "class RefPtr __cdecl OsLoadLibrary(char const *)" (?OsLoadLibrary@@YA?AV?$RefPtr@VDLibrary@@@@PBD@Z) referenced in function "public: static void __cdecl GFXD3DDevice::enumerateAdapters(class Vector &)" (?enumerateAdapters@GFXD3DDevice@@SAXAAV?$Vector@UGFXAdapter@@@@@Z)
../example/TSE.exe : fatal error LNK1120: 1 unresolved externals


Any idea whay might have gone wrong.

#1
11/10/2006 (8:08 am)
I am having the same problem.
#2
11/10/2006 (8:21 am)
You need to add winDLibrary.cpp to engine\platformWin32.

EDIT: Add it to your project. ;)
#3
11/10/2006 (12:47 pm)
The file is already there.

Same problem here
#4
11/10/2006 (12:52 pm)
You have to add it to the project. When I did it compiled fine

@James - thanks
#5
11/10/2006 (5:24 pm)
Oh, sorry for misunderstanding.

Now it compiles...
#6
11/10/2006 (6:17 pm)
I'm getting a lot of link errors like:

vorbis_static_mt.lib(sharedbook.obj) : error LNK2019: unresolved external symbol _ldexp referenced in function __float32_pack
vorbis_static_mt.lib(lsp.obj) : error LNK2019: unresolved external symbol _frexp referenced in function _vorbis_lsp_to_curve
vorbis_static_mt.lib(res0.obj) : error LNK2001: unresolved external symbol _calloc
vorbis_static_mt.lib(floor1.obj) : error LNK2001: unresolved external symbol _calloc
vorbis_static_mt.lib(floor0.obj) : error LNK2001: unresolved external symbol _calloc

map2dif plus - [b/1920[/b] error(s), 0 warning(s)

Just added winDLibrary.cpp to my project but didn't worked.
#7
11/10/2006 (8:23 pm)
Thx james. I got it linked fine
#8
11/13/2006 (6:07 pm)
I hope I don't sound too stupid but is there a FAQ that covers all the steps? I'm not a VS savy person.
#9
11/13/2006 (6:28 pm)
@ Alan

http://tdn.garagegames.com/wiki/TSE/Setup
#10
11/14/2006 (10:03 am)
Thank you Haider!
#11
11/17/2006 (1:12 am)
.
#12
12/03/2006 (9:46 pm)
@Gustavo
I got map2dif plus to compile & link by:

1) making sure that winDLibrary.cpp was in also the TSE lib project (just like the Torque Shader Engine project)
2) remove the LIBCMTD & LIBCMT flags from Ignore Specific Library.

This got it to link & build with no errors. On the negative side, the map file that I ran it thorugh causes map2dif plus to crash. It might just be my map though...
#13
12/05/2006 (7:12 am)
Hey guys, thank for the help! i was missing winDLibrary.cpp in the TSE lib project too!

Now its compiling just fine. Thanks.
#14
12/05/2006 (12:20 pm)
Thanks for the help with the winDLibrary.cpp file, i wouldn't be able to solve this so easy cause i have just bought the tge and tse, i would probably spend a few days trying to solve it. And it makes me wonder why garagegames does such thing.. didn't they tested the project settings before selling their product?? Well, they should!
#15
12/07/2006 (8:33 pm)
A small readme in the zip file would have been nice =/, a small note that CVS is down would be nice also.