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

Code doesn't compile on Ubuntu 21.04: ld returned 1 exit status #11

Open
Tc14Hd opened this issue Jun 3, 2021 · 1 comment
Open

Code doesn't compile on Ubuntu 21.04: ld returned 1 exit status #11

Tc14Hd opened this issue Jun 3, 2021 · 1 comment

Comments

@Tc14Hd
Copy link

Tc14Hd commented Jun 3, 2021

When I run the command ./configure && make, I get a long error message that ends with:

collect2: error: ld returned 1 exit status
make: *** [Makefile:31: cadet] Error 1

The full error message can be found here.
Am I doing something wrong or is this an actual problem? I am using GCC version 10.3.0 on Ubuntu 21.04.

@player1537
Copy link

I believe the cause of this compile error is that src/log.h needs to have extern added before each of the variable declarations.

Specifically, lines 39-42 of src/log.h should be changed from:

int debug_verbosity;
bool log_qdimacs_compliant;
bool log_colors;
bool log_silent;

to:

extern int debug_verbosity;
extern bool log_qdimacs_compliant;
extern bool log_colors;
extern bool log_silent;

This was tested and it seems to be working now.

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

2 participants