I have tried adding -single_module to dynamic library link options :
g++ -dynamiclib -flat_namespace -single_module -o libThrow.dylib
throw.o -lIOKit
And it works in the sample program ! Thank you for your help.
I still have to test this options in my complete application, but I
am confident it will solve the problem.
I still have few questions :
-> do you know how it solves the exceptions problem, when linking
with IOKit, itself linked to libgcc_s.1.dylib ?
-> Is there a web page explaining in details (more than man ldd) the
different link options : -flat_namespace, -single_module, etc..
Try if building your library with the -single_module flag helps.
--
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden