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 Integer) As Integer

there was a typo in the above line, sorry



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to