site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com this work well but no in c++ ? licall.c ---------------- int main () { clilib(); return 0; } clilib.c ---------------- #include <stdio.h> int clilib() { printf("cli-call\n"); clilibobject(); return 1; } clilibobject.c ---------------- #include <stdio.h> int clilibobject() { printf("cli-lib-call\n"); return 1; } gcc -c clicall.c gcc -dynamiclib clilib.c clilibobject.c -o libcli.dylib gcc -o clicall clicall.o -L. -lcli ./clicall cli-call cli-lib-call Best Regards _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com