Linker Error

G

Guest

Hi,
I have a VC 6 project with a few C source code files,and one c++ source
file. When I refer to any function in the c++ file from the C file, i get a
Linker error saying that "error LNK2001: unresolved external symbol
_AddPicture" ( AddPicture) is the name of the function that i am referring
to. Function Protoypes and header files have been defined correctly.

Thanks and Regards
 
J

Jeff Partch [MVP]

Pravin Prabhu said:
Hi,
I have a VC 6 project with a few C source code files,and one c++ source
file. When I refer to any function in the c++ file from the C file, i get a
Linker error saying that "error LNK2001: unresolved external symbol
_AddPicture" ( AddPicture) is the name of the function that i am referring
to. Function Protoypes and header files have been defined correctly.

Do you use EXTERN_C ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top