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

Incorrect link order causes build failure #4

Open
chrisrichardson77 opened this issue Jan 12, 2015 · 0 comments
Open

Incorrect link order causes build failure #4

chrisrichardson77 opened this issue Jan 12, 2015 · 0 comments

Comments

@chrisrichardson77
Copy link

gcc is more picky about link order than some linkers. Current build fails with:

g++ -mtune=core2 -march=core2 -msse3 -mfpmath=sse -m64 -O3 -o example libuc.a example.o
example.o: In function print_person(JAD::UniversalContainer&)': example.cpp:(.text+0x4f): undefined reference toJAD::UniversalContainer::operator[](char const*)'
example.cpp:(.text+0x5c): undefined reference to JAD::UniversalContainer::operator std::string() const' example.cpp:(.text+0x69): undefined reference toJAD::UniversalContainer::operator[](char const*)'
example.cpp:(.text+0x76): undefined reference to JAD::UniversalContainer::operator std::string() const' example.cpp:(.text+0x83): undefined reference toJAD::UniversalContainer::operator[](char const*)'
example.cpp:(.text+0x8b): undefined reference to `JAD::UniversalContainer::operator char() const'
....

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