CALL_EXTERNAL error when calling a C program [message #45889] |
Sun, 09 October 2005 11:27 |
dmg31
Messages: 3 Registered: October 2005
|
Junior Member |
|
|
Hey,
I am running on mac os x. I have an IDL program which calls a C
program, and this worked when I ran the program on a SUN but now I have
just moved my files onto a new mac. I have been reading many of the
responses to similar questions on this board but I have had no success
in solving these errors.
When I compile the c code using:
gcc -c simul2.c
ld simul2.o -bundle -lm -o simul.so
i get the error:
ld: Undefined symbol:
dyld_stub_blinding_helper
I am not sure how to solve that problem.
Also when I compile the code a few other ways and I do get a .so file,
when I run the IDL program I get the error:
CALL_EXTERNAL: Error loading sharable executable.
Symbol: reflect, File =
/USers/dmg31/jup/SIMUL/simul.so
dlopen(/Users/dmg31/jup/SIMUL/simul.so, 1):
no suitable image found. Did find:
/Users/dmg31/jup/SIMUL/simul.so:
unknown file type, first eight bytes: 0x21...
so I have a feeling that I am not making the .so file correctly. If
someone could help me that would be great.
Thank you so much
dan
|
|
|