#Error in linking lib

14 messages · Page 1 of 1 (latest)

normal crestBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

near cobalt
#

-l flag has to be to the right of any .c/.cpp/.o to have effect

#

Is that the issue, by any chance?

rare minnow
rare minnow
#

UPDATE: I tried to list the symbols of the object files and saw that the lib has multiple lrs_run functions.


000000000004d4c0 T lrs_run_2

0000000000033ae0 T lrs_run_gmp

0000000000015b90 T plrs_run_1

0000000000047d10 T plrs_run_2

000000000002e310 T plrs_run_gmp```

The header lib defines the functions without the _1 and _2. Any ideas why?
near cobalt
#

This is something specific to this library

#

The header lib defines the functions without the _1 and _2. Any ideas why?
Nah, they do this intentionally

#

So either you need to define some macro, or manually call a function suffixed with _1/_2/_gmp, or something else. See if they have some sort of a manual

#

The readme mentions it in passing

rare minnow
#

Thanks for the help. Found this too an hour ago and was just about to give an update.

#

!solved

normal crestBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity