Closed XscapeCn closed 2 years ago
Maybe you are missing OpenMP? Try sudo apt install libomp-dev
and see if it compiles afterward.
Sorry for not replying in time. That still doesn't seem to work and the error is same as before.
Can you let us know which compiler and version are you using?
I am using gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
I would need to compiler version.
$> gcc --version
yes, what I did is gcc --version
.
$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Ok, long-shot: I see on your log:
cc -L../lib -I.. wfa_basic.c -o bin/wfa_basic -lwfa -lm
Makes me think whether you are using gcc
or another cc
.
Can you double-check that gcc is being called under cc
?
Also, if it complains about the lack the OpenMP libraries, you could always add the -fopenmp
to any command line you execute:
cc -L../lib -I.. wfa_basic.c -o bin/wfa_basic -lwfa -lm -fopenmp
In any case, I'm double checking on my side.
ok, I solve this by adding -fopenmp
to the command line. I really feel stupid..clearly I have a long way to go.
Thank you very much for your help and I will close the issue.
Not at all. It is probably my fault. I will double-check that all the Makefile information is there and try to avoid this error in the future.
Let us know if you have any other problems or questions.
Cheers,
Hello! I just clone the repository and try it but I have met a make error in 'example' folder. I have followed the instruction in README.md:
and I did:
the error is:
Could you help me solve this issue? Thanks for your help!