For being more specific, I’m wondering if it’s possible to compile a .c and a .pl with the gnu prolog compiler but link them with Apple LLVM compiler along with the rest of an iOS project for being able to use prolog in an iOS app.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you link files, you do that using a linker, not a compiler. Some times the compilers call the linker for you so you don’t have to do that, that is why you think that the compilers are doing the linking.
This is how you link some object files together:
For more information on
ldlook here.EDIT: If you are going to use your prolog .o files in an iOS project, you must be sure that you compile your prolog code for the same plattform as the iOS is running on, let’s say ARM.