[OpenAFS-devel] using the AFS libraries under Win2k

Kuba Ober kuba@mareimbrium.org
Wed, 28 Aug 2002 12:03:59 -0400


On poniedziałek 26 sierpień 2002 02:45 pm, Burcin Erocal wrote:
> It works now.. thanks

I works because these are C libraries, and you try to use them from a C++ 
program. Either use C compiler (VC has a C-only compiler, probably you need 
to rename your files from .cpp to .c), or you must extern "C" {} all the 
C-headers that you use -- at least all those that don't have extern "C" in 
themselves (some nicer C headers do have automagic extern "C" whenever they 
are included in a C++ program).

Cheers, Kuba Ober