I'm using XCode 2.3 and have created a BSD dynamic library project on
an Intel based Mac
I set the code generation for all targets to PPC as I know RB won't
load Intel dylib's
I have in my C file the following simple function
long initialize()
{
return 0L ;
}
and an appropriate header
In RB I have this in a push button's action event
declare function initialize lib "/Users/npalardy/libTest.dylib" as
integer
dim i as integer
i = initialize()
I compile the XCode project and it generates a dylib in the path I
specified in RB
I've set the permissions to 777
nm shows
/Users/npalardy/libTest.dylib(single module):
00000f20 t ___initialize_Cplusplus
00000f00 t __dyld_func_lookup
00000000 t __mh_dylib_header
00000f98 T _initialize
00000ef8 t cfm_stub_binding_helper
00001000 d dyld__mh_dylib_header
00001008 s dyld_func_lookup_pointer
00001004 s dyld_lazy_symbol_binding_entry_point
00000ec8 t dyld_stub_binding_helper
file shows
/Users/npalardy/libTest.dylib: Mach-O dynamically linked shared
library ppc
Everything seems ok but regardless I always get a failure to launch
the application.
If I switch to a SOFT DECLARE I get function not found exceptions
Yet I can link to this dylib in another XCode project without issue.
I'm puzzled and looking for some help or pointers
Thanks !
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>