extern "C" ignored?
From: Lei Jiang (code_at_263.net)
Date: 07/14/04
- Next message: Ashton: "Help with calling Extern Function"
- Previous message: Lei Jiang: "Re: How to access C# indexer in C++"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 22:45:36 +0800
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?
Thanks!
- Next message: Ashton: "Help with calling Extern Function"
- Previous message: Lei Jiang: "Re: How to access C# indexer in C++"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|