Posts

Post not yet marked as solved
3 Replies
1.3k Views
So, the bridging header says#define qnorm5 Rf_qnorm5 #define qnorm qnorm5 double qnorm(double, double, double, int, int);and the code sayslet myresult = qnorm (0.75,0,1,1,0)This compiles, but does not link. The link output saysUndefined symbols for architecture x86_64: "_qnorm", referenced from: macOS_app_test.ViewController.sayButtonClicked(Any) -> () in ViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)The paths are correct and the proper library is found. Except that the symbol _qnorm doesn't exist anywhere. It's probably _Rf_qnorm5 that the compiler should look for. It does not seem to matter what says in the bridging header file, so I'm probably making some newbie mistake, but which?Any and all hints or suggestions appreciated.Thank you.
Posted
by roffe.
Last updated
.