Lan Nguyen
November 12th, 2001, 02:06 AM
Dear all,
I would like to ask a question.
I have a "srp.lib" file, compiled in VC++ from a C project. When I use that "srp.lib" library file in a "tconf" project (written in C, with main() function), "tconf" compiles and links well to produce an exe file.
But when I use that "srp.lib" library file in a MFC project "dlgtest", when linking, it gives some errors:
"dlgtestDlg.obj : error LNK2001: unresolved external symbol "struct t_conf * __cdecl t_openconf(struct _iobuf *)" (?t_openconf@@YAPAUt_conf@@PAU_iobuf@@@Z)
Debug/dlgtest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
"
in which t_openconf() is defined in "srp.lib" and also used in "tconf".
Can anyone tell me how to fix it?
Many thanks,
Lan Nguyen
I would like to ask a question.
I have a "srp.lib" file, compiled in VC++ from a C project. When I use that "srp.lib" library file in a "tconf" project (written in C, with main() function), "tconf" compiles and links well to produce an exe file.
But when I use that "srp.lib" library file in a MFC project "dlgtest", when linking, it gives some errors:
"dlgtestDlg.obj : error LNK2001: unresolved external symbol "struct t_conf * __cdecl t_openconf(struct _iobuf *)" (?t_openconf@@YAPAUt_conf@@PAU_iobuf@@@Z)
Debug/dlgtest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
"
in which t_openconf() is defined in "srp.lib" and also used in "tconf".
Can anyone tell me how to fix it?
Many thanks,
Lan Nguyen