./test
test.c
- Code: Select all Expand view
- #include <stdio.h>
#include <dlfcn.h>
void hb_vmInit( int );
int main( char * arg, int args )
{
void * handle = dlopen ( "libharbour.2.1.0.dylib", RTLD_LAZY );
void ( * hb_vmInit ) ( int );
hb_vmInit = dlsym( handle, "hb_vmInit" );
( * hb_vmInit )( 1 );
dlclose( handle );
return 0;
}