Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Oct 18, 2017 10:45 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: 'Declare' - FunctionNotFoundException
PostPosted: Tue Jun 19, 2012 8:37 am 
Offline

Joined: Tue Jun 19, 2012 8:15 am
Posts: 3
with following declaration I've tried to call getpid() , as decribed in the language reference

#if TargetLinux
Soft Declare Function getpid Lib "LibC" () as Integer
#endif
p = getpid()


when calling the function a FunctionNotFoundException occurs.
Linux version 3.2.0-25

thanks for any help


Top
 Profile  
Reply with quote  
 Post subject: Re: 'Declare' - FunctionNotFoundException
PostPosted: Tue Jun 19, 2012 9:14 am 
Offline

Joined: Tue Jun 19, 2012 8:15 am
Posts: 3
Found the problem, because linux is case sensitive the declare statement must be
Soft Declare Function getpid Lib "libc" () as Integer

Please correct the manuals.

Now I've tried to call another lib, but the same error occurs when I try to make a call. Where must the lib reside that real studio found the library functions ?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group