- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
Environment: macOS SIERRA.
I am trying to install cilkplus using the instruction described here. I also have changed the path according to the instruction. However, I am facing this error (screenshot attached) constantly. Can anyone please help me to resolve this issue?
Regards,
Ashik
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I think you need to add a library search path when compiling your cilk code as follows.
clang -fcilkplus test.c -o test -L <library path>
<library path> should be the directory that contains the Cilk runtime library, libcilkrts.5.dylib.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hello,
Thanks a lot for your answer. Yes, it resolves that problem. When I have compiled and run the sample.c (attached below) I got no errors. However, when I tried to compile another file fib.cpp (attached below) I got an error message specifying (attached below)...
/Users/llvm/projects/compiler-rt/lib/cilk/include/cilk/common.h:79:13: fatal error:
'cassert' file not found
any idea why I am facing this error? Thank you very much for the help.
--Ashik
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Check if your clang/clang++ is searching the location of the headers by including "-v" (verbose) option.
It must be searching a location like this if Xcode is installed:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
If it is not, include the directory that contains "cassert" in your search path.

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite