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

Minor installation suggestion #27

Open
markcharder opened this issue Jan 15, 2024 · 2 comments
Open

Minor installation suggestion #27

markcharder opened this issue Jan 15, 2024 · 2 comments

Comments

@markcharder
Copy link

Dear developers,
errlog.txt

I am not sure if this program is still being maintained but it might be good to enforce -std=c++11 in the make file, e.g.

CFLAGS = -O3 -std=c++11

Compilation fails with gcc 12.2.0 (c++17) due to namespace ambiguity for the type data. See attached make error log, for example.

I love the program, and LDhot, by the way. I am looking forward to discovering some new things about recombination in the species I work on!

All the best,
Mark

@auton1
Copy link
Owner

auton1 commented Jan 15, 2024 via email

@Gullumluvl
Copy link

Hi!

to be fully explicit, I managed to compile LDhat with the following flags for GCC 4.8.5 and GCC 14.2:

make CC='gcc -std=c89' CPP='g++ -std=c++11'

Otherwise starting from -std=c99 I was getting the error:

convert.c:11:1: error: return type defaults to ‘int’ [-Wimplicit-int]
   11 | main (int argc, char *argv[]) {
      | ^~~~

Best,

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

3 participants