I am getting the following compilation / link error:
ld: 0711-317 ERROR: Undefined symbol: .__gcc_qsub
ld: 0711-317 ERROR: Undefined symbol: .__gcc_qmul
ld: 0711-317 ERROR: Undefined symbol: .__gcc_qadd
What library holds those?
Any ideas?
Lynton
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.
Here’s a total stab in the dark…
A Google search picked up this header from Apple. It looks like its part of
libgcc(which is not Apple specific, that’s just Apple’s implementation), and that its used for doinglong doublearithmetic in software. Try adding-lgccto your build process.According to the GCC manual, you can also explicitly force static or shared linkage of libgcc with either of these options:
-shared-libgccor-static-libgcc.Edit: As Nemo has pointed out, if you use
gccto link instead of manually invokingldyourself, aslibgccwill then be linked automatically.