Sign in to follow this  
phil67rpg

linker error

Recommended Posts

I am getting this error. Any help please. SoftNet error LNK2019: unresolved external symbol "public: virtual __thiscall CDlgAdvOptions::~CDlgAdvOptions(void)" (??1CDlgAdvOptions@@UAE@XZ) referenced in function "protected: void __thiscall CRoutesFrm::OnFileOptions(void)" (?OnFileOptions@CRoutesFrm@@IAEXXZ) SoftNet error LNK2019: unresolved external symbol "public: __thiscall CDlgAdvOptions::CDlgAdvOptions(void)" (??0CDlgAdvOptions@@QAE@XZ) referenced in function "protected: void __thiscall CRoutesFrm::OnFileOptions(void)" (?OnFileOptions@CRoutesFrm@@IAEXXZ) SoftNet error LNK2019: unresolved external symbol "public: __thiscall CSpeech::CSpeech(void)" (??0CSpeech@@QAE@XZ) referenced in function "unsigned int __cdecl StartSpeechThread(void *)" (?StartSpeechThread@@YAIPAX@Z) SoftNet error LNK2019: unresolved external symbol "public: virtual __thiscall CSpeech::~CSpeech(void)" (??1CSpeech@@UAE@XZ) referenced in function "unsigned int __cdecl StartSpeechThread(void *)" (?StartSpeechThread@@YAIPAX@Z) SoftNet error LNK2019: unresolved external symbol "public: void __thiscall CNetProApp::Talk(char const *)" (?Talk@CNetProApp@@QAEXPBD@Z) referenced in function "protected: void __thiscall CRoutesFrm::SelectPrevRoute(void)" (?SelectPrevRoute@CRoutesFrm@@IAEXXZ) SoftNet error LNK2019: unresolved external symbol "public: void __thiscall CNetProApp::VoiceRecognition(void)" (?VoiceRecognition@CNetProApp@@QAEXXZ) referenced in function "public: bool __thiscall CNetProApp::Init(void)" (?Init@CNetProApp@@QAE_NXZ) SoftNet error LNK2019: unresolved external symbol "public: void __thiscall CSpeech::Run(void)" (?Run@CSpeech@@QAEXXZ) referenced in function "unsigned int __cdecl StartSpeechThread(void *)" (?StartSpeechThread@@YAIPAX@Z) SoftNet fatal error LNK1120: 7 unresolved externals

Share this post


Link to post
Share on other sites
All this means is that the listed functions could not be found -- that usually means you either did not define them, misspelled a definition, or defined them but managed to exclude the file containing the definition from compilation.

The functions in question are:

CDlgAdvOptions::CDlgAdvOptions
CDlgAdvOptions::~CDlgAdvOptions
CSpeech::CSpeech
CSpeech::~CSpeech
CNetProApp::Talk
CNetProApp::VoiceRecognition
CSpeech::Run


Do you have definitions for those functions? If so, show us.

Share this post


Link to post
Share on other sites
Quote:
Original post by phil67rpg
I am getting this error. Any help please.

SoftNet error LNK2019: unresolved external symbol "public: virtual __thiscall CDlgAdvOptions::~CDlgAdvOptions(void)" (??1CDlgAdvOptions@@UAE@XZ) referenced in function "protected: void __thiscall CRoutesFrm::OnFileOptions(void)" (?OnFileOptions@CRoutesFrm@@IAEXXZ)
SoftNet error LNK2019: unresolved external symbol "public: __thiscall CDlgAdvOptions::CDlgAdvOptions(void)" (??0CDlgAdvOptions@@QAE@XZ) referenced in function "protected: void __thiscall CRoutesFrm::OnFileOptions(void)" (?OnFileOptions@CRoutesFrm@@IAEXXZ)
SoftNet error LNK2019: unresolved external symbol "public: __thiscall CSpeech::CSpeech(void)" (??0CSpeech@@QAE@XZ) referenced in function "unsigned int __cdecl StartSpeechThread(void *)" (?StartSpeechThread@@YAIPAX@Z)
SoftNet error LNK2019: unresolved external symbol "public: virtual __thiscall CSpeech::~CSpeech(void)" (??1CSpeech@@UAE@XZ) referenced in function "unsigned int __cdecl StartSpeechThread(void *)" (?StartSpeechThread@@YAIPAX@Z)
SoftNet error LNK2019: unresolved external symbol "public: void __thiscall CNetProApp::Talk(char const *)" (?Talk@CNetProApp@@QAEXPBD@Z) referenced in function "protected: void __thiscall CRoutesFrm::SelectPrevRoute(void)" (?SelectPrevRoute@CRoutesFrm@@IAEXXZ)
SoftNet error LNK2019: unresolved external symbol "public: void __thiscall CNetProApp::VoiceRecognition(void)" (?VoiceRecognition@CNetProApp@@QAEXXZ) referenced in function "public: bool __thiscall CNetProApp::Init(void)" (?Init@CNetProApp@@QAE_NXZ)
SoftNet error LNK2019: unresolved external symbol "public: void __thiscall CSpeech::Run(void)" (?Run@CSpeech@@QAEXXZ) referenced in function "unsigned int __cdecl StartSpeechThread(void *)" (?StartSpeechThread@@YAIPAX@Z)
SoftNet fatal error LNK1120: 7 unresolved externals


Um, yes? There's not much anyone of us can add to this.
The linker can't find the symbols mentioned.
Cleaning them up a bit, a few of them seem to be:
CSpeech::CSpeech()
CDlgAdvOptions::CDlgAdvOptions(void)
CSpeech::CSpeech(void)

I know linker errors look scary, but they can be deciphered, and there's no magic in them. It simply states the symbols that some of your object files reference, but which it can't find definitions of.

Since I have absolutely no clue what your CSpeech class does, much less how it is defined, or how you call the compiler, I can't tell you how to fix it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this