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 when adding time parameters to messages #1

Closed
romancardenas opened this issue Feb 11, 2020 · 0 comments
Closed

Linker error when adding time parameters to messages #1

romancardenas opened this issue Feb 11, 2020 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@romancardenas
Copy link
Collaborator

I am trying to add fields to messages that provide information about simulation time.
All the new messages have been defined in data_structures/message.cpp and data_structures/message.hpp.

So far, only the main_client_generator_test.cpp test has been adapted to the new message style. However, when compiling using make simulators, The following error is displayed:

rm -f bin/* build/*
g++ -g -c -std=c++17 -I ../../cadmium/include -I ../../DESTimes/include test/main_client_generator_test.cpp -o build/main_client_generator_test.o
g++ -g -c -std=c++17 -I ../../cadmium/include -I ../../DESTimes/include data_structures/message.cpp -o build/message.o
g++ -g -o bin/CLIENT_GENERATOR_TEST build/main_client_generator_test.o build/message.o
Undefined symbols for architecture x86_64:
  "std::__1::basic_ostream<char, std::__1::char_traits<char> >& operator<<<NDTime>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, newClient<NDTime> const&)", referenced from:
      cadmium::logger::value_or_name<newClient<NDTime>, std::__1::integral_constant<bool, true> >::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, newClient<NDTime> const&) in main_client_generator_test.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [tests] Error 1
@romancardenas romancardenas added the help wanted Extra attention is needed label Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants