Open laoshaw opened 1 year ago
I get this too, but on macOS. It's not clear to me if there's meant to be a main function and it's broken for some reason, or if it's meant to be a library and some systems don't require a special flag to compile one.
Neither, this file as originally written is meant to be compiled but not linked into anything and the Makefile in question was submitted by a contributor and isn't (to my knowledge) used by the maintainers at all, or at least I've never used it. (This is the first time I'm learning about it even existing in the repository.)
I'd be happy to contribute a small patch that fixes the Makefile so it won't try to link against main, but I am not a maintainer so I don't know if the file is reasonable to begin with. Does it look okay?
I think all that needs to happen here is to add a -c
to the line that compiles this file since the only reason the test_x_compilation
file exist is to check that the libs compile when fed to a C/C++ compiler, respectively. (I.e. to test that the libs conform to the common subset of C and C++.)
Might be good to compile them a few times with different language standards.
I believe the Makefile is part of the Travis integration, so probably shouldn't be touched unless that's broken.
Describe the bug can not make tests
To Reproduce Steps to reproduce the behavior:
Expected behavior should build tests without errors
Screenshots If applicable, add screenshots to help explain your problem.