Basically, I have a cython code where i want to call C's inline assembly. I tried below:
cdef extern from *:
"""
#include <stdio.h>
void print_endln(){
asm("nop");
}
"""
void print_endln()
print_endln()
But I get below error:
ids.obj : error LNK2001: unresolved external symbol asm Location\iaa.cp39-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\link.exe' failed with exit code 1120
My OS is windows 10 x64, python version Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
I compile the code as python setup.py build_ext --inplace && python program.py
Is there something wrong I am doing?