Probleme beim Compilieren von code mit SNAP Library
-
Hallo,
ich möchte die SNAP Library benutzen, habe aber Probleme beim Compilieren von Code.
Ähnlich wie in diesem Beitrag (https://www.c-plusplus.net/forum/291509-full), habe ich Fehler der Form 'undefined reference to ...':u.a.
Snap.cpp:(.text+0xfa7df): undefined reference to
omp\_get\_max_threads' Snap.cpp:(.text+0xfa912): undefined reference to
GOMP_parallel_start'
Snap.cpp:(.text+0xfa924): undefined reference toGOMP\_parallel\_end' Snap.cpp:(.text+0xfaa1e): undefined reference to
omp_get_max_threads'
Snap.cpp:(.text+0xfaa96): undefined reference toGOMP\_parallel\_start' Snap.cpp:(.text+0xfaaa5): undefined reference to
GOMP_parallel_end'
Snap.cpp:(.text+0xfab40): undefined reference toGOMP\_parallel\_start' Snap.cpp:(.text+0xfab52): undefined reference to
GOMP_parallel_end'Ich compiliere in der Form:
g++ -o test main.cpp Snap.o -Iglib -Isnap
Hoffe ihr könnt mir weiterhelfen und Danke im Vorraus!
Gruß
-
Was die Lib auch immer tut, sie scheint OpenMP zu benutzen. Das musst du dann dem Compiler/Linker mit "-fopenmp" sagen.
-
manni66 schrieb:
Was die Lib auch immer tut, sie scheint OpenMP zu benutzen. Das musst du dann dem Compiler/Linker mit "-fopenmp" sagen.
Das war es! Tausend Dank! Du hast meinen Tag sehr viel produktiver gemacht!