-
Notifications
You must be signed in to change notification settings - Fork 163
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
Broken again on Windows #270
Comments
If working around the above issues, linking issues arise: Severity Code Description Project File Line Suppression State |
Fixed above compile errors and removed the whole component causing the link issue, since I can't build on windows yet. @feldmeier Did you have to do anything for OpenMP? Can you see if this builds on your machine? I tried to get it done and got a compile error about a pragma task |
MSVC only provides builtin OMP 2, and #pragma omp task is a OMP 3 feature. I usually test on windows with the OpenMP option disabled in CMake. I will test on my machine when it arrives here (probably tomorrow) |
I get the following on Windows 10 VM when compiling with OpenMP enabled:
|
Compiling with OpenMP disabled, still get the following linking errors:
|
@galabovaa these errors should be due to there being both class and struct named HighsBasis, HighsSolution. Some of these are wrong forward declarations (e.g. class HighsSolution; in ICrashUtil.h line 20, while HighsSolution is defined as struct in HighsLp.h line 327) |
Did you pull all the changes from the branch? ICrashUtil.h shoule be gone now, until it's fixed. The resolving of names is high on my todo list |
@galabovaa Yes, I had checked out the windows branch. |
Thank you @mckib2, it should now be fixed (according to the new GA test, I still don't have a win machine) Would you or @feldmeier please double check before I merge into master? |
@galabovaa I also don't have a Windows machine, just a VM. Let me start it up and take a look |
Still get the following:
Here's what I'm doing -- maybe @feldmeier has some suggestions if I am building incorrectly:
EDIT: I've taken a look at CI builds for windows, looks like I need MSYS2 |
It is working when I build like this from an MSYS2 terminal:
Building from CMD or MINGW64 terminal (e.g., used by git GUI) results in failing build with errors above. I'm not a Windows user, but I'll go ahead and make a pull request with some docs for Windows build. |
@mckib2 would you please try the code below again on your VM? Also the openmp option should work with OpenMP 3.0 I think mkdir build && cd build |
Severity Code Description Project File Line Suppression State
Error C2065 'CMAKE_BUILD_TYPE': undeclared identifier libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\presolve\Presolve.cpp 197
Error C2039 'tolower': is not a member of 'std' libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\presolve\ICrash.cpp 36
Error C2039 'min': is not a member of 'std' libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\util\HighsUtils.cpp 586
Error C2039 'min': is not a member of 'std' libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\util\HighsUtils.cpp 732
Error C3861 'min': identifier not found libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\util\HighsUtils.cpp 586
Error C3861 'min': identifier not found libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\util\HighsUtils.cpp 732
Error C2039 'max': is not a member of 'std' libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\util\HighsUtils.cpp 43
Error C3861 'max': identifier not found libhighs C:\Users\Michael\Documents\GitHub\HiGHS\src\util\HighsUtils.cpp 43
The text was updated successfully, but these errors were encountered: