Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of PyOpt in the local directory failed #16

Open
moustafabachar opened this issue Apr 23, 2021 · 1 comment
Open

Compilation of PyOpt in the local directory failed #16

moustafabachar opened this issue Apr 23, 2021 · 1 comment

Comments

@moustafabachar
Copy link

I wanted to compile PyOpt in the current directory, and I followed the command:
python setup.py build_ext --inplace

However, I get the following errors:
undefined reference to 'evalhc_'
undefined reference to 'evalh_'
...
undefined reference to 'evalhlp'
collect2.exe: error: ld returned 1 exit status

Somehow it is not able to find those functions, even though they are defined in: pyOpt/pyOpt/pyALGENCAN/source/f2py/algencan.pyf

About my system, I am compiling on Windows 10 and I using Python3.7, numpy and numpy_ext are installed, swig is available and my fortran compiler is GNU Fortran 95 compiler (4.9.2)

@madebr
Copy link
Owner

madebr commented Apr 27, 2021

What toolchain are you using?
I guess this is not the one shipped by msys2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants