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

Link error #5

Open
sunhuaiqiang opened this issue Nov 5, 2017 · 0 comments
Open

Link error #5

sunhuaiqiang opened this issue Nov 5, 2017 · 0 comments

Comments

@sunhuaiqiang
Copy link

it returns following error when compiling, it seems a link error, but no library specified

CMakeFiles/bruker_to_ismrmrd.dir/main.cpp.o: In function main': main.cpp:(.text.startup+0x1102): undefined reference to ISMRMRD::Dataset::Dataset(char const*, char const*, bool)'
main.cpp:(.text.startup+0x1de5): undefined reference to ISMRMRD::Dataset::writeHeader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' main.cpp:(.text.startup+0x1f55): undefined reference to ISMRMRD::Dataset::~Dataset()'
main.cpp:(.text.startup+0x23bc): undefined reference to ISMRMRD::Dataset::appendAcquisition(ISMRMRD::Acquisition const&)' main.cpp:(.text.startup+0x247a): undefined reference to ISMRMRD::Dataset::~Dataset()'
main.cpp:(.text.startup+0x271f): undefined reference to `ISMRMRD::Dataset::~Dataset()'
collect2: error: ld returned 1 exit status
src/CMakeFiles/bruker_to_ismrmrd.dir/build.make:114: recipe for target 'src/bruker_to_ismrmrd' failed
make[2]: *** [src/bruker_to_ismrmrd] Error 1
CMakeFiles/Makefile2:87: recipe for target 'src/CMakeFiles/bruker_to_ismrmrd.dir/all' failed
make[1]: *** [src/CMakeFiles/bruker_to_ismrmrd.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

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

1 participant