• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[C++]Unresolved external symbol

Status
Not open for further replies.
Joined
Apr 18, 2010
Messages
674
Reaction score
393
[Edit]
Apparently, I was using the wrong lib for x64 for SQLAPI.
Also, Detours 1.5 doesn't support x64, and you can't compile Detours 2.1 for x64 unless you have Detours Professional (wtf? it says it supports x64 lol).
[/Edit]

I'm trying to target my project to a x64 machine, changed the options and so forth.
However, even though I declare I'm using these libs, it keeps saying "External symbol" when compiling.

Code:
#pragma comment( lib, "SQLAPI.lib" )
#pragma comment( lib, "CDetour.lib" )

Code:
Server.obj : error LNK2001: unresolved external symbol "public: __cdecl SAConnection::SAConnection(void)" (??0SAConnection@@QEAA@XZ)
Server.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl SAConnection::~SAConnection(void)" (??1SAConnection@@UEAA@XZ)
Server.obj : error LNK2001: unresolved external symbol "public: __cdecl CDetour::CDetour(void)" (??0CDetour@@QEAA@XZ)
Server.obj : error LNK2001: unresolved external symbol "public: __cdecl CDetour::~CDetour(void)" (??1CDetour@@QEAA@XZ)
Server.obj : error LNK2001: unresolved external symbol "public: __cdecl SACommand::SACommand(class SAConnection *,class SAString const &,enum SACommandType_t)" (??0SACommand@@QEAA@PEAVSAConnection@@AEBVSAString@@W4SACommandType_t@@@Z)
Server.obj : error LNK2001: unresolved external symbol "public: __cdecl SAString::SAString(char const *)" (??0SAString@@QEAA@PEBD@Z)
Server.obj : error LNK2001: unresolved external symbol "public: __cdecl SAString::~SAString(void)" (??1SAString@@QEAA@XZ)
Server.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl SACommand::~SACommand(void)" (??1SACommand@@UEAA@XZ)
Server.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl SACommand::Execute(void)" (?Execute@SACommand@@UEAAXXZ)
Server.obj : error LNK2001: unresolved external symbol "public: bool __cdecl SACommand::FetchNext(void)" (?FetchNext@SACommand@@QEAA_NXZ)
Server.obj : error LNK2001: unresolved external symbol "public: long __cdecl SAValueRead::asLong(void)const " (?asLong@SAValueRead@@QEBAJXZ)
Server.obj : error LNK2001: unresolved external symbol "public: class SAField & __cdecl SACommand::Field(class SAString const &)" (?Field@SACommand@@QEAAAEAVSAField@@AEBVSAString@@@Z)
Server.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl SACommand::Close(void)" (?Close@SACommand@@UEAAXXZ)
Server.obj : error LNK2001: unresolved external symbol "public: void __cdecl SAConnection::Connect(class SAString const &,class SAString const &,class SAString const &,enum SAClient_t,void (__cdecl*)(class SAConnection &,enum SAConnectionHandlerType_t))" (?Connect@SAConnection@@QEAAXAEBVSAString@@00W4SAClient_t@@P6AXAEAV1@W4SAConnectionHandlerType_t@@@Z@Z)
Server.obj : error LNK2001: unresolved external symbol "public: bool __cdecl CDetour::Detour(unsigned char *,unsigned char *,bool,bool,bool,int,int)" (?Detour@CDetour@@QEAA_NPEAE0_N11HH@Z)
Server.obj : error LNK2001: unresolved external symbol "public: bool __cdecl CDetour::Apply(void)" (?Apply@CDetour@@QEAA_NXZ)

Am I missing something?
 
Last edited:
Status
Not open for further replies.
Back
Top