UG4 / ugcore

The core functionality of UG4. Includes sources, build-scripts, and utility scripts.
https://github.com/UG4/ugcore
Other
36 stars 23 forks source link

ug4 does not compile with Visual Studio 2013&2015 #8

Closed miho closed 8 years ago

miho commented 8 years ago

Error message:

[ 85%] Building CXX object ugcore/CMakeFiles/ug4_s.dir/ugbase/bridge/misc_bridges/pcl_bridge.cpp.obj
c:\users\miho\documents\github\ug4\ugcore\ugbase\common\util\raster_impl.hpp(296): error C2065: "mi": nichtdeklarierter Bezeichner
c:\users\miho\documents\github\ug4\ugcore\ugbase\common\util\raster_impl.hpp(296): warning C4346: "ug::Raster<T,TDIM>::MultiIndex": Abhängiger Name ist kein Typ
c:\users\miho\documents\github\ug4\ugcore\ugbase\common\util\raster_impl.hpp(296): note: Präfix mit "typename" zum Angeben eines Typs
c:\users\miho\documents\github\ug4\ugcore\ugbase\common\util\raster_impl.hpp(296): error C2182: "set_num_nodes": Unzulässige Verwendung des Typs "void"
c:\users\miho\documents\github\ug4\ugcore\ugbase\common\util\raster_impl.hpp(296): error C2350: "ug::Raster<T,TDIM>::set_num_nodes" ist kein statisches Element
c:\users\miho\documents\github\ug4\ugcore\ugbase\common\util\raster_impl.hpp(296): note: Siehe Deklaration von "ug::Raster<T,TDIM>::set_num_nodes"
c:\users\miho\documents\github\ug4\ugcore\ugbase\common\util\raster_impl.hpp(296): error C2513: "ug::Raster<T,TDIM>::set_num_nodes": Keine Variable vor "=" deklariert
jom: C:\Users\miho\Documents\GitHub\ug4\build\ugcore\CMakeFiles\ug4_s.dir\build.make [ugcore\CMakeFiles\ug4_s.dir\ugbase\bridge\misc_bridges\raster_bridge.cpp.obj] Error 2
miho commented 8 years ago

Build commands:

..\ugcore\scripts\shell\vcinit14-64.bat
cmake .. -G "NMake Makefiles JOM" -DEMBEDDED_PLUGINS=ON -DSTATIC_BUILD=ON -DBLAS=OFF -DLAPACK=OFF
jom
miho commented 8 years ago

VS 2013 gives the same error.

stephanmg commented 8 years ago

Probably this is not of interest for you @miho, but MinGW64 seems to compile the Code.

stephanmg commented 8 years ago

Sorry, accidently closed it...

sreiter commented 8 years ago

The issue and an additional linker error should now been fixed. Could you please verify this? Thanks!

miho commented 8 years ago

Thanks for the fix.

stephanmg commented 8 years ago

Thanks!