Linking to libsmbclient.so

Benjamin Riefenstahl Benjamin.Riefenstahl at epost.de
Thu Mar 11 16:54:52 GMT 2004


Hi Steven,


"Steven McClellan" <steve at mcclellan.org> writes:
> I should've opened the libsmbclient.h file to see that the extern
> "C" was missing for the function prototypes.  I guess that the next
> question should be whether the samba developers can add this to the
> libsmbclient.h file so that I don't have to maintain a separate one
> with my modifications.

Strictly speaking it doesn't belong there.  Why should a C header file
care about C++?  Try using

 extern "C" {
 #include "smbclient.h"
 }

in your C++ code. 


benny



More information about the samba-technical mailing list