matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
491 stars 72 forks source link

cannot compile with oglplus-0.53.0 in VS2010 #86

Closed danielyan86129 closed 9 years ago

danielyan86129 commented 9 years ago

Hi there,

First of all many thanks for this great library.

I was enjoying 0.43 before and now would like to update to 0.53. I won't be able to compile my project with 0.53 in VS2010 with error "Strongly-typed enums are required but not supported by the used compiler". I understand that VS2010 doesn't support strongly-typed enums but I thought there was a workaround in oglplus that makes 0.43 work fine with VS2010. So is that workaround optimized away in current version?

Any help would be very appreciated!

P.S. if vs2010 is "out-dated", would intel c++ compiler good for 0.53 ?

matus-chochlik commented 9 years ago

Hi,

unfortunately yes, the workaround for scoped enums (and generally support for MSVC2010) has been dropped a couple of releases ago. MSVC10 has quite lot of problems besides not supporting very basic C++11 features, like bugs in function overload resolution, etc. and during the recent rewrite and clean-up a lot of code that was there just to support MSVC10 was removed. I would like to slowly make C++11 a requirement, plus merge some new features from the EAGine project that will need it anyway and maintaining old and creating new workarounds for broken compilers takes a lot of time. Besides there is a free version of MSVC2012 which is supported by OGLplus.

I hope this is not a major problem for You and I'm sorry for any inconveniences.

Best regards,

Matus

danielyan86129 commented 9 years ago

Hi Matus,

Thanks for your reply. It's reassuring to hear from you that MSVC2010 is not good anymore for newer versions of oglplus. I will then upgrade my development environment, which shouldn't be a big problem. One question: when I configure oglplus using the configure.bat, it automatically recognizes MSVC. Is there any way I can re-direct it to use intel's compiler?

thanks!

matus-chochlik commented 9 years ago

Hi,

I didn't test how/if this actually works on Windows but, You could try specifying the cmake generator explicitly:

.\configure.bat ... --cmake -G "name of the generator" (in this case you'll probably need also a different build system) or AFAIK it is possible to tell visual studio to use a different compiler like (icc) instead of msvc.

HTH