<<On Wed, 25 Mar 2009 14:08:28 +0100 (CET), Felix Frank <[email protected]> 
said:

> On Wed, 25 Mar 2009, Barry Fawthrop wrote:
>> This would throw and error about void * and char *
>> 
>> I had to change to the following
>> 
>> name = (char *)malloc(sizeof(name));

> I guess the code is sloppy that way here and there, yes.

Nothing sloppy about it, that's Standard ISO C.  The mistake here
appears to be trying to compile C code with a C++ compiler.  It is an
error to expect this to work.  Despite the similarity in the names, C
and C++ are different languages and have different rules.  Barry
should be using a C compiler to compile the C code in OpenAFS, and use
the C++ external-linkage feature to link his C++ code to the C
libraries.

-GAWollman

_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to