[Gambas-user] Extern declaration question

wally wally at ...2037...
Mon Aug 20 11:50:11 CEST 2012


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"

Public Extern serialPuts(fd As Integer, s As String)
'Minisini:
Public Extern serialPrintf(fd As Integer, message As String, ...) In ...

Public Extern serialDataAvail(fd As InputBox) As Integer








More information about the User mailing list