I need to use features that are only available in Python for a program written in C. I found several sources to help me but just one of them gives me the command to compile the code:
gcc -I/usr/include/python2.7 prog.c -lpython2.7 -o prog -Wall && ./prog
I had to change it to
gcc -I/usr/include/python3.4 prog.c -lpython3.4 -o prog -Wall && ./prog
but the compiler returns:
/usr/bin/ld: cannot find -lpython3.4 collect2: error: ld returned 1 exit status
It's one of the first times I have used gcc
so I really don't understand what to do even when I look at examples.
Aucun commentaire:
Enregistrer un commentaire