c++ - Compiling a .cpp file from the cmd line on windows, error "cannot open file 'python.lib" -
i've got .c file has python.h in , want compile it.
this i'm entering cmd line @ moment cl -ic:\[...]\python35\include -ic:\[...]\python35\libs testfilepython.c
which results in error: link : fatal error lnk1104: cannot open file 'python35.lib'
i've found this seems perfect fit question, cannot figure out libpath
s should include. me that?
edit: okay i'm using cpp setup.py looks this:
from distutils.core import setup cython.build import cythonize setup(ext_modules = cythonize( "testfilepython.pyx", # our cython source language="c++", # generate c++ code ))
running python setup.py build_ext --inplace
results in .cpp being created (.c before language option)
now i'm trying compile .cpp. while searching i've come across idea need include embed option (this might solve no entry point problem), still trying see can that.
testfilepython.pyx just: print("hello world")
, if asked can print contents of cpp created.
Comments
Post a Comment