|
-
November 12th, 2001, 02:05 AM
#1
Using *.lib file in MFC project?
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
-
November 12th, 2001, 01:41 PM
#2
Re: Using *.lib file in MFC project?
Hi,
it looks like there is a headerfile defined in your tconf project also implemented in your lib. So if you link your tconf obj everything works fine. Dump your srp.lib and then you can see.
Long
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|