Click here to Skip to main content
15,914,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Clearing the contents of the following... [modified] Pin
Programm3r5-Mar-07 3:32
Programm3r5-Mar-07 3:32 
QuestionRe: Clearing the contents of the following... Pin
prasad_som5-Mar-07 3:39
prasad_som5-Mar-07 3:39 
GeneralRe: Clearing the contents of the following... [modified] Pin
Programm3r5-Mar-07 3:43
Programm3r5-Mar-07 3:43 
Questionabout DLL loading Pin
mt_samiei4-Mar-07 21:26
mt_samiei4-Mar-07 21:26 
AnswerRe: about DLL loading [modified] Pin
prasad_som4-Mar-07 21:47
prasad_som4-Mar-07 21:47 
GeneralRe: about DLL loading Pin
mt_samiei4-Mar-07 22:04
mt_samiei4-Mar-07 22:04 
AnswerRe: about DLL loading Pin
CPallini4-Mar-07 22:03
mveCPallini4-Mar-07 22:03 
QuestionNeed Help With "error LNK2019: unresolved external symbol" Pin
jipai4-Mar-07 21:15
jipai4-Mar-07 21:15 
Hi, I'm having a link error problem and I don't know how to fix it.
Please help me out.

error LNK2019: unresolved external symbol _Validate@1068 referenced in
function...........

I use VS2005

I have a static library with the following C++ settings:
/Od /D "WIN32" /D "_DEBUG" /D "_LIB" /D "_UNICODE" /D "UNICODE" /Gm /
EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp"Debug\Licensor.pch" /Fo"Debug\\" /
Fd"Debug\vc80.pdb" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:prompt

It uses __cdecl (/Gd) calling convention.

In the header file, I have
#if __cplusplus
extern "C" {
#endif

__declspec(dllexport) int WINAPI Validate(CHAR szNewKey[], int length, LICENSEDATA licData, LICENSEDATA* extLicData);

#if __cplusplus
}
#endif

I have a win32 project that links to the static library above in order to
call the Validate function. It has the following C++ settings:
/Od /I "..\..\Licensor" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D
"VERBOSE" /D "_VC80_UPGRADE=0x0600" /D "_MBCS" /FD /EHsc /MTd /Fp".
\Debug/Temp.pch" /Fo".\Debug/" /Fd".\Debug/" /W4 /nologo /c /ZI /TP /
errorReport:prompt

It too uses __cdecl (/Gd) calling convention.


I'm not sure what to change. Should I be using __stdcall (/Gz) calling
convention for the project? I tried that but no luck either.

Any suggestion? Thanks much.

QuestionRe: Need Help With "error LNK2019: unresolved external symbol" Pin
prasad_som4-Mar-07 21:26
prasad_som4-Mar-07 21:26 
AnswerRe: Need Help With "error LNK2019: unresolved external symbol" Pin
jipai4-Mar-07 21:52
jipai4-Mar-07 21:52 
AnswerRe: Need Help With "error LNK2019: unresolved external symbol" Pin
Cedric Moonen4-Mar-07 21:27
Cedric Moonen4-Mar-07 21:27 
GeneralRe: Need Help With "error LNK2019: unresolved external symbol" Pin
jipai4-Mar-07 22:54
jipai4-Mar-07 22:54 
GeneralRe: Need Help With "error LNK2019: unresolved external symbol" Pin
Cedric Moonen4-Mar-07 23:05
Cedric Moonen4-Mar-07 23:05 
GeneralRe: Need Help With "error LNK2019: unresolved external symbol" Pin
jipai5-Mar-07 14:51
jipai5-Mar-07 14:51 
Questionabout parallel Port resources Pin
mt_samiei4-Mar-07 21:01
mt_samiei4-Mar-07 21:01 
QuestionAdding html help to an existing dialog based application Pin
harsh_29614-Mar-07 20:30
harsh_29614-Mar-07 20:30 
AnswerRe: Adding html help to an existing dialog based application Pin
Hamid_RT4-Mar-07 20:49
Hamid_RT4-Mar-07 20:49 
GeneralRe: Adding html help to an existing dialog based application Pin
harsh_29614-Mar-07 21:58
harsh_29614-Mar-07 21:58 
GeneralRe: Adding html help to an existing dialog based application Pin
Hamid_RT5-Mar-07 5:46
Hamid_RT5-Mar-07 5:46 
GeneralRe: Adding html help to an existing dialog based application Pin
harsh_29616-Mar-07 18:38
harsh_29616-Mar-07 18:38 
GeneralRe: Adding html help to an existing dialog based application Pin
Hamid_RT6-Mar-07 18:46
Hamid_RT6-Mar-07 18:46 
GeneralRe: Adding html help to an existing dialog based application Pin
harsh_29616-Mar-07 19:52
harsh_29616-Mar-07 19:52 
GeneralRe: Adding html help to an existing dialog based application Pin
Hamid_RT7-Mar-07 6:58
Hamid_RT7-Mar-07 6:58 
Questionwhere and how to write code for SetFont() for Dialog box in VC++? Pin
Atul234-Mar-07 20:29
Atul234-Mar-07 20:29 
AnswerRe: where and how to write code for SetFont() for Dialog box in VC++? Pin
Hamid_RT4-Mar-07 20:53
Hamid_RT4-Mar-07 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.