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 using the libmuonpi library #10

Closed
marvin5300 opened this issue Feb 6, 2022 · 0 comments · Fixed by #11
Closed

Linker error when using the libmuonpi library #10

marvin5300 opened this issue Feb 6, 2022 · 0 comments · Fixed by #11
Assignees
Labels
bug Something isn't working
Milestone

Comments

@marvin5300
Copy link
Member

Functions muonpi::http::content_type::json()and muonpi::http::content_type::html() are defined in the same header file as they are declared. This seems to lead to problems when using the library.

/usr/include/muonpi/http_response.h:72: multiple definition of `muonpi::http::content_type::html()'; CMakeFiles/rest_server.dir/rest_server/src/main.cpp.o:/usr/include/muonpi/http_response.h:72: first defined here
/usr/bin/ld: CMakeFiles/rest_server.dir/common_files/src/api.cpp.o: in function `muonpi::http::content_type::json()':
@marvin5300 marvin5300 added the bug Something isn't working label Feb 6, 2022
@marvin5300 marvin5300 added this to the v1.0.0 milestone Feb 6, 2022
@marvin5300 marvin5300 self-assigned this Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants