[Gambas-user] Extern declaration question
Benoît Minisini
gambas at ...1...
Mon Aug 20 12:12:25 CEST 2012
Le 20/08/2012 11:52, wally a écrit :
> On Monday 20 August 2012 11:16:14 Benoît Minisini wrote:
>> Le 20/08/2012 11:05, wally a écrit :
>>> How should i declare this function of a shared libray in gambas extern ?
>>>
>>>
>>> #include <stdarg.h>
>>> void serialPrintf (int fd, char *message, ...)
>>>
>>>
>>> Public Extern serialPrintf(fd As Integer, message As Pointer, ...) '???
>>>
>>> wally
>>
>> Public Extern serialPrintf(fd As Integer, message As String, ...) In ...
>
> i tried this line and get this error :
> "Library name must be a string"
>
> this error occurs only for this line, other extern function declaration does
> not rise this error.
>
> Library "/usr/local/lib/libwiringPi"
>
Guess what? I can't read minds and see the code around the one line you
sent.
The "..." means that you have to type what you have to type there.
(nothing in your case, as you used the 'Library' line).
Regards,
--
Benoît Minisini
More information about the User
mailing list