I downloaded a python-wrapped C++ code and am trying to build it from source, and it compiles without errors, but when I run the end result, it fails in a way that seems to suggest that it did not find at least one of the libraries that it was supposed to link against.
What surprises me is, in distutils.core.Extension
, you can give a list of libraries, but there is no error or message to tell me that one of the libraries does not exist. I can put any gibberish string in the list and it will still run without errors. Is there any setting for this in Extension
? Or any other way to check?
For reference, here is the setup.py
code (Ubuntu 14.04, Python 2.7):
coolmodule = Extension('cool',
sources = [
'cool/main_python.c'
],
libraries = [
'cool',
'stdc++'
'lapack',
'blas',
'gfortran',
'fftw3',
# if I add any gibberish string to this list,
# it still runs without error!
],
library_dirs = ['./build'],
extra_link_args = [
'./build/libcool.a'
]
)
setup(name = 'cool',
ext_modules = [coolmodule]
)
Thank you in advance!!