Skip to content

Linking issue: undefined reference to `xad::Tape<double>::Tape(bool)' #120

Answered by bradbell
bradbell asked this question in Q&A
Discussion options

You must be logged in to vote

@auto-differentiation-dev
My mistake. I had my_test.cpp after the library in the compler/linker command; i.e.

 g++ \
   -g \
   -I $prefix/include \
   $library_list \
   -o my_test \
   my_test.cpp  >& my_test.out

The following change fixed the problem:

g++ \
-g \
-I $prefix/include \
-o my_test \
my_test.cpp  \
$library_list \
>& my_test.out

I suggest moving this from an issue to a discussion.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by auto-differentiation-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #119 on July 26, 2024 11:50.