Thank you for answering!
Up to now I have programmed C code which call the C-function I need (see the added file, the c code save ass .txt). Now I got an following error:
CreateLibrary::cmperr: "Compile error: \!\(\"clang: error: linker command failed with exit code 1 (use -v to see invocation)\"\)"
Do you have an idea to fix the error?
If I comment nfft_init_3d(&plan,n,n,n,dims[0]);
, nfft_adjoint(&p);
and nfft_finalize(&p);
out the error doesn't occur. These are the functions I called from the NFFT package written in C.
I use
myLibrary =
CreateLibrary[{"/Users/.../example.c"}, "myLibrary",
"IncludeDirectories" -> {"..."},
"Debug" -> False];
to integrate the C file. The "..." stand for the file/ directory path which I cut out for better readability.
Attachments: