necpp
necpp copied to clipboard
Errors in building process for pyNEC VC/VC++ compliers in windows
Hi @tmolteno , I have been compiling necpp for PyNEC package (python 3.4/3.6) in windows 7/10 using VC++ 10/14.
- The compiler is showing following error in misc.cpp. (This is stopping the build)
Error: misc.cpp error C2039: 'toupper' : is not a member of 'std'
similar issue is discussed here. https://stackoverflow.com/questions/19876746/stdtolower-and-visual-studio-2013
There might be a win compatibility issue. or requires some modification of VC++ installation. I worked around it by including cctype in misc.cpp. This way the complier is build through the whole process.
-
warning while passing compiler arg from setup.py -fPIC. This is related to VC++ compiler arg warning so I have included it here.
cl : Command line warning D9002 : ignoring unknown option '-fPIC'
I found this https://stackoverflow.com/questions/42757497/python-installation-compilation-errors. But it's not working. Is this option important? -
warning while linking
LINK : warning LNK4044: unrecognized option '/lstdc++'; ignored
Please provide appropriate solution. Also, update the PyNEC submodule afterwards, so that the building process remains stable. One suggestion why not use a "devel" branch for development and leave the master branch for release stable (tags) versions. This way module using necpp as submodule will become more stable.
Thanks