Skip to content

make_graph.c:43:10: fatal error: 'omp.h' file not found #1

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

Open
VFVrPQ opened this issue Aug 15, 2023 · 1 comment
Open

make_graph.c:43:10: fatal error: 'omp.h' file not found #1

VFVrPQ opened this issue Aug 15, 2023 · 1 comment

Comments

@VFVrPQ
Copy link

VFVrPQ commented Aug 15, 2023

make all but has the following error:

gcc -g -std=c99 -Wall -Drestrict=__restrict__ -O3 -DNDEBUG -ffast-math  -DGRAPH_GENERATOR_SEQ -g -o generator_seq generator_seq.c graph_generator.c make_graph.c splittable_mrg.c utils.c -lm
generator_seq.c:115:35: warning: format specifies type 'unsigned long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
      fprintf(fout, "%lu\t%lu\n", get_v0_from_edge(result + i), get_v1_from_edge(result + i));
                     ~~~          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     %lld
generator_seq.c:115:65: warning: format specifies type 'unsigned long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
      fprintf(fout, "%lu\t%lu\n", get_v0_from_edge(result + i), get_v1_from_edge(result + i));
                          ~~~                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          %lld
2 warnings generated.
make_graph.c:43:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~
1 error generated.
make: *** [generator_seq] Error 1

How to solve it.

@shixuansun
Copy link
Member

Please setup the OpenMP environment before compiling the code.

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