Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error #1

Closed
NAThompson opened this issue Oct 26, 2021 · 3 comments
Closed

Linker error #1

NAThompson opened this issue Oct 26, 2021 · 3 comments

Comments

@NAThompson
Copy link

NAThompson commented Oct 26, 2021

Got the following linker error when trying to use this repo:

➜  math git:(develop) ✗ make tanh_sinh_test_errors.x
g++-10 -g --std=gnu++17 -ffast-math -fno-finite-math-only -march=native -Wfatal-errors -MMD -fvisibility=hidden -O3 -I./ -I./include -I/usr/local/include -o tanh_sinh_test_errors.x tanh_sinh_test_errors.cpp
Undefined symbols for architecture x86_64:
  "__Z9get_testsv", referenced from:
      _main in ccoFfLO8.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

I copied the .cpp file into the .hpp and it fixed it. The parse doesn't seem that unreasonable so might be easier.

@NAThompson
Copy link
Author

FYI: Just tried the std::fma and Kahan summation on this repo; couldn't observe any improvement sadly.

@jzmaddock
Copy link
Owner

It's in tanh_sinh_test_cases.cpp

@jzmaddock
Copy link
Owner

FYI: Just tried the std::fma and Kahan summation on this repo; couldn't observe any improvement sadly.

This does improve things: boostorg/math#714 for the pathological cases.

I think I may have spotted another bug too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants