I have the following simple application:
#include <stdio.h>
#include <tensorflow/c/c_api.h>
int main() {
printf("Hello from TensorFlow C library version %s\n", TF_Version());
return 0;
}
But when I try to run the executable on windows, windows alerts: “The application was unable to start correctly. Click ok to close the application.”
I’m using the GPU-Version 2.10.0 of the tensorflow libary. I’m using gcc to build my project:
gcc -fdiagnostics-color=always -g C:\path\to\my\project\**.c -o C:\path\to\my\project\bin\executable.exe -I C:\path\to\my\project\include -L C:\path\to\my\project\bin -l tensorflow
I tried to use g++ instead of gcc, but that doesn’t work.