[Gambas-user] Extern declaration question
wally
wally at ...2037...
Mon Aug 20 12:28:28 CEST 2012
On Monday 20 August 2012 12:12:25 Benoît Minisini wrote:
> 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,
> The "..." means that you have to type what you have to type there.
I do not understand what you want to explain.
Public Extern serialPrintf(fd As Integer, message As String, ...)
the above declaration witjout the "In ..." seems to work.
wally
More information about the User
mailing list