Linking to libsmbclient.so
Steven McClellan
steve at mcclellan.org
Thu Mar 11 17:14:54 GMT 2004
On Thursday, March 11, 2004 Benjamin Riefenstahl wrote:
>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.
Thanks, that works fine as well. I guess that maybe a note in the
documentation for the libsmbclient examples to show this may be the only
thing that is necessary.
-Steve
More information about the samba-technical
mailing list