Skip to content

Any chat such as Slack or Discord and such for ANTs and ANTs-derivative development? #1643

Discussion options

You must be logged in to vote

Okay so, in all my stupidity, I don't understand why but somehow I fixed it a bit.

I've added the line -Wl,-rpath-link,"/opt/ANTs/lib to the LIBS variable to try to get rid of the warning of missing dynamically linked libraries.

INCLUDEPATH += \
    /home/tanderson/ANTs/Examples/include \

LIBS += \
    -L"/opt/ANTs/lib" -ll_PrintHeader \
    -Wl,-rpath-link,"/opt/ANTs/lib"

This compiles my source and uses the ants::PrintHeader function just right. Perfect I guess? But, does that mean my code can only work with the available ANTs installation on the target computer, to dynamically link upon executing the code? How can I fully statically link everything? I should use the -L"/opt/ANTs/lib"

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Timothy-Anders0n
Comment options

Answer selected by Timothy-Anders0n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants