I am new to gcc
. I am trying to compile a C file created by Cython with help from this site: Compile main Python program using Cython
The C file was created successfully with following command:
cython --embed -o mycode.c mycode.py
I then used following gcc command:
gcc -Os -I E:\WinPython\python-3.6.5\include\ -o mycode mycode.c -L E:\WinPython\python-3.6.5\libs -lpython36 -lpthread -lm -lutil -ldl
But it gives following error:
C:/MinGW-W64/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lutil
C:/MinGW-W64/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -ldl
collect2.exe: error: ld returned 1 exit status
Where is the problem and how can it be solved?