New topic: 

Declares and dylib - What am I missing

<http://forums.realsoftware.com/viewtopic.php?t=47193>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Jordan          Post subject: Declares and dylib - What am I 
missingPosted: Wed Mar 06, 2013 11:05 pm                         
Joined: Wed Jan 04, 2006 7:58 pm
Posts: 558
Location: Tri-State Area (NJ, NY, CT)                I'm trying to define a 
declare and I keep getting the error FunctionNotFound

Running in debug mode:

CONST dylibLocation = "/Users/Machine/Downloads/libsodium.0.dylib"
Soft Declare Function randombytes_random lib dylibLocation () as Integer
dim i as Integer
i = randombytes_random()


This is the include from the dynamic library

typedef struct randombytes_implementation {
const char *(*randombytes_implementation_name)(void);
uint32_t  (*randombytes_random)(void);
void    (*randombytes_stir)(void);
uint32_t  (*randombytes_uniform)(const uint32_t upper_bound);
void    (*randombytes_buf)(void * const buf, const size_t size);
int   (*randombytes_close)(void);
} randombytes_implementation;

int   randombytes_set_implementation(randombytes_implementation *impl);

void    randombytes(unsigned char *buf, unsigned long long size);

const char *randombytes_implementation_name(void);
uint32_t  randombytes_random(void);
void    randombytes_stir(void);
uint32_t  randombytes_uniform(const uint32_t upper_bound);
void    randombytes_buf(void * const buf, const size_t size);
int   randombytes_close(void);


Whatever I'm doing wrong I can't see it! Help??      
_________________
http://www.kaliware.com
Carbon Declare Library Contributor   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to