necpp icon indicating copy to clipboard operation
necpp copied to clipboard

Errors in building process for pyNEC VC/VC++ compliers in windows

Open rounaksingh opened this issue 7 years ago • 0 comments

Hi @tmolteno , I have been compiling necpp for PyNEC package (python 3.4/3.6) in windows 7/10 using VC++ 10/14.

  1. 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.

  1. 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?

  2. 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

rounaksingh avatar Dec 05 '17 08:12 rounaksingh