By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & Developers. It's quick & easy.

extern "C" ignored?

P: n/a
I have setup a .NET library in C++ language in VS.NET 2005 Beta1. I this
project, I add some additional dependency to some C library. The header file
of the C library has been marked as "extern "C"", but the linker just can't
find these function entries. After I read the error report carefully, I
found that the compiler seems ignored these "extern C" mark.

The linker report :

Error 13 error LNK2020: unresolved token (0A00001A) "void (__cdecl*__cdecl
ticsSetEofHandler(struct TicsHandle_s *,void (__cdecl*)(struct TicsHandle_s
*,int)))(struct TicsHandle_s *,int)"
(?ticsSetEofHandler@@$$J0YAP6AXPAUTicsHandle_s@@H@ Z0P6AX0H@Z@Z)

From the error message, it looks like that the compiler has ignored these
"extern C".

How could I solve this problem?

Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.