Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / error LNK2005: __invoke_watson already defined in MSVCRTD.lib(MSVCR90D.dll

Author
Message
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 14th Dec 2009 01:18
[/code]1>LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbText(int,int,char *)" (?dbText@@YAXHHPAD@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>debugger.lib(debugger.obj) : error LNK2001: unresolved external symbol "void __cdecl dbText(int,int,char *)" (?dbText@@YAXHHPAD@Z)
1>gameplay.lib(Gameplay.obj) : error LNK2001: unresolved external symbol "void __cdecl dbText(int,int,char *)" (?dbText@@YAXHHPAD@Z)
1>core.lib(DBDLLExtCalls.obj) : error LNK2001: unresolved external symbol "void __cdecl dbText(int,int,char *)" (?dbText@@YAXHHPAD@Z)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbDisableEscapeKey(void)" (?dbDisableEscapeKey@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>system.lib(System.obj) : error LNK2019: unresolved external symbol "int __cdecl dbChecklistValueC(int)" (?dbChecklistValueC@@YAHH@Z) referenced in function "public: void __thiscall System::SetWindow(int,int,int,int,int)" (?SetWindow@System@@QAEXHHHHH@Z)
1>system.lib(System.obj) : error LNK2019: unresolved external symbol "int __cdecl dbChecklistValueB(int)" (?dbChecklistValueB@@YAHH@Z) referenced in function "public: void __thiscall System::SetWindow(int,int,int,int,int)" (?SetWindow@System@@QAEXHHHHH@Z)
1>system.lib(System.obj) : error LNK2019: unresolved external symbol "int __cdecl dbChecklistValueA(int)" (?dbChecklistValueA@@YAHH@Z) referenced in function "public: void __thiscall System::SetWindow(int,int,int,int,int)" (?SetWindow@System@@QAEXHHHHH@Z)
1>multiplayer.lib(Multiplayer.obj) : error LNK2019: unresolved external symbol "void __cdecl dbSendNetMessageMemblock(int,int)" (?dbSendNetMessageMemblock@@YAXHH@Z) referenced in function "private: void __thiscall Multiplayer::Send(void)" (?Send@Multiplayer@@AAEXXZ)
1>multiplayer.lib(Multiplayer.obj) : error LNK2019: unresolved external symbol "void __cdecl dbNetMessageMemblock(int)" (?dbNetMessageMemblock@@YAXH@Z) referenced in function "private: void __thiscall Multiplayer::Receive(void)" (?Receive@Multiplayer@@AAEXXZ)
1>multiplayer.lib(Multiplayer.obj) : error LNK2019: unresolved external symbol "void __cdecl dbGetNetMessage(void)" (?dbGetNetMessage@@YAXXZ) referenced in function "private: void __thiscall Multiplayer::Receive(void)" (?Receive@Multiplayer@@AAEXXZ)
1>multiplayer.lib(Multiplayer.obj) : error LNK2019: unresolved external symbol "int __cdecl dbNetMessageExists(void)" (?dbNetMessageExists@@YAHXZ) referenced in function "private: void __thiscall Multiplayer::Receive(void)" (?Receive@Multiplayer@@AAEXXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl PassCoreDataMultiplayer(void *)" (?PassCoreDataMultiplayer@@YAXPAX@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl SetErrorHandlerMultiplayer(void *)" (?SetErrorHandlerMultiplayer@@YAXPAX@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl DestructorMultiplayer(void)" (?DestructorMultiplayer@@YAXXZ) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl ConstructorMultiplayer(void)" (?ConstructorMultiplayer@@YAXXZ) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl PassCoreDataSystem(void *)" (?PassCoreDataSystem@@YAXPAX@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl SetErrorHandlerSystem(void *)" (?SetErrorHandlerSystem@@YAXPAX@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl DestructorSystem(void)" (?DestructorSystem@@YAXXZ) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl ConstructorSystem(void)" (?ConstructorSystem@@YAXXZ) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "int __cdecl dbGetTextHeight(char *)" (?dbGetTextHeight@@YAHPAD@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "int __cdecl dbGetTextWidth(char *)" (?dbGetTextWidth@@YAHPAD@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl dbSetTextFont(char *,int)" (?dbSetTextFont@@YAXPADH@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl dbSetTextColor(int,int,int,int)" (?dbSetTextColor@@YAXHHHH@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl PassCoreDataText(void *)" (?PassCoreDataText@@YAXPAX@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl SetErrorHandlerText(void *)" (?SetErrorHandlerText@@YAXPAX@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl DestructorText(void)" (?DestructorText@@YAXXZ) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>core.lib(DBDLLExtCalls.obj) : error LNK2019: unresolved external symbol "void __cdecl ConstructorText(struct HINSTANCE__ *)" (?ConstructorText@@YAXPAUHINSTANCE__@@@Z) referenced in function "bool __cdecl SetDBDLLExtCalls(void)" (?SetDBDLLExtCalls@@YA_NXZ)
1>display.lib(CGfxC.obj) : error LNK2019: unresolved external symbol "void __cdecl RefreshD3DMultiplayer(int)" (?RefreshD3DMultiplayer@@YAXH@Z) referenced in function "void __cdecl BuildFunctionsForDLLRefresh(void)" (?BuildFunctionsForDLLRefresh@@YAXXZ)
1>display.lib(CGfxC.obj) : error LNK2019: unresolved external symbol "void __cdecl RefreshD3DSystem(int)" (?RefreshD3DSystem@@YAXH@Z) referenced in function "void __cdecl BuildFunctionsForDLLRefresh(void)" (?BuildFunctionsForDLLRefresh@@YAXXZ)
1>display.lib(CGfxC.obj) : error LNK2019: unresolved external symbol "void __cdecl RefreshD3DText(int)" (?RefreshD3DText@@YAXH@Z) referenced in function "void __cdecl BuildFunctionsForDLLRefresh(void)" (?BuildFunctionsForDLLRefresh@@YAXXZ)
1>Debug\Prysm.exe : fatal error LNK1120: 28 unresolved externals[code]

*twich twich*
i have no idea what any of this means. if it means anything, i just converted a massive amount of files to .libs, if that has anything to do with this.

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 14th Dec 2009 02:04
add msvrtd to ignore specific library
properties->linker->input->ignore specific library

As for the rest, try changing your code generation to Multithreaded or Multithreaded Debug DLL and compile..see which works..

The first error is due to multiple definitions of invoke_watson in different libs. The rest are mostly because the function definitions can't be found.

When a person has nothing but a dream, can he dare to dream.
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 14th Dec 2009 21:05
If you ever see this:

error LNK Some Number

where some number would be 2019 or 2005(like yours says) then google that LNK Some Number The first result will probably be msdn. It will tell you everything you needt o know about the error. and sometimes shows examples on how it's caused/fixed.

New Site! Check it out \/
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 14th Dec 2009 21:09
changed everything to multi-threaded debug, and a second time everything that plus dll, neither worked. i also put the library you told me to put in ignore, and i still get all the errors. may i ask you what exactly invoke_watson does?

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 15th Dec 2009 13:41
Quote: "what exactly invoke_watson does?"

I dont know really.

Well, Im clueless now.. LOL..
If I were you, id try upgrading to DarkGDK7.4a and use its libs. Well thats just me..XD

When a person has nothing but a dream, can he dare to dream.
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 15th Dec 2009 22:27
ok, i upgraded, and i looked at the link error help pages. just one problem: i can't edit the darkGDK files, and thats where most of the errors are coming from.

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
Freedom Fighters
14
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 15th Dec 2009 23:04
for future reference on linker errors, look here to see if it solves it: http://msdn.microsoft.com/en-us/library/8x5x43k7.aspx

Problem Solution That Never Fails: "Build A Bridge And Get Over It"
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 16th Dec 2009 21:17
i still have not been able to find anything that could cause these errors, as most of them come from inside of darkGDK. i have this code on two computers, a laptop and a desktop. on the laptop, all .libs are still in non library form. this version works without any errors. the desktop, where all files are converted into .libs, with the exception of the main.cpp, these errors happen. is there any setting that might cause this?

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 16th Dec 2009 23:21
It looks like you are trying to use the functions defined by including DarkGDK.h but without linking the libs. Try manually doing it like this:

#pragma comment(lib, 'library path/name')

look in the DarkGDK include and find all the libraries to include. unresolved external means your calling a function that has it's name defined but not it's body. so like the DarkGDK include does this:

void dbText(int, int, char*);

but the actual function is defined in the library so if you don't link the library then you are calling a function that doesn't have a body.

New Site! Check it out \/
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 19th Dec 2009 22:52
gah, ok, new problem
it cannot find atls.lib, so i ignore it.
then msvcrt conflicts with something, i ignore it
msvcrtd conflict, i ignore it.
cmtlib conflict, i ignore it. then i get over 1000 unresolved symbols. everything that is conflicting is in core.lib. what do i do now?

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
Serial Velocity
16
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 20th Dec 2009 13:16
If you're not, try compiling in Release mode and see if that makes a difference.

Login to post a reply

Server time is: 2024-10-01 20:18:34
Your offset time is: 2024-10-01 20:18:34