I'm having trouble converting a .c file to a .dll file with VSCode. I think the problem is that MinGW is not able to compile on x64.
OSError: [WinError 193] %1 is not a valid Win32 application
Any ideas?
#include <stdio.h>
#include <stdlib.h>
double TourLength(int* tour, int tourlength, double** d) {
tour[tourlength+1] = tour[0];
double L = 0;
int i, j, k;
for (k = 0; k < tourlength; k++) {
i = tour[k];
j = tour[k + 1];
L += d[i][j];
}
return L;
}
The idea is to use this code in python with the aim of improving its compilation speed.