Skip to content

Incorrect link order causes build failure #4

Description

@chrisrichardson77

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'
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions