I'm trying to compile this for Maya 2016 on Windows 10/Visual Studio 2015. CoreLib compiles successfully, but when I try to compile RenderLib I get the following error:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1> Checking Build System
1> CMake does not need to re-run because D:/workspace/Grower/RenderLib/.build/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: RenderLib, Configuration: Debug Win32 ------
2> Building Custom Rule D:/workspace/Grower/RenderLib/CMakeLists.txt
2> CMake does not need to re-run because D:\workspace\Grower\RenderLib\.build\CMakeFiles\generate.stamp is up-to-date.
2> bvh.cpp
2> kdTree.cpp
2>d:\workspace\grower\corelib\include\containers/list/list.h(74): error C2535: 'T &CoreLib::List<T,Allocator>::operator [](size_t)': member function already defined or declared
2> d:\workspace\grower\corelib\include\containers/list/list.h(72): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2> d:\workspace\grower\corelib\include\containers/list/list.h(105): note: see reference to class template instantiation 'CoreLib::List<T,Allocator>' being compiled
2>d:\workspace\grower\corelib\include\containers/list/list.h(75): error C2535: 'const T &CoreLib::List<T,Allocator>::operator [](size_t) const': member function already defined or declared
2> d:\workspace\grower\corelib\include\containers/list/list.h(73): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2>d:\workspace\grower\corelib\include\containers\list\list.inl(274): error C2995: 'const T &CoreLib::List<T,Allocator>::operator [](size_t) const': function template has already been defined
2> d:\workspace\grower\corelib\include\containers/list/list.h(73): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2>d:\workspace\grower\corelib\include\containers\list\list.inl(286): error C2995: 'T &CoreLib::List<T,Allocator>::operator [](size_t)': function template has already been defined
2> d:\workspace\grower\corelib\include\containers/list/list.h(72): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2> photonMap.cpp
2> boundingBox.cpp
2> bounds2D.cpp
2> intersection.cpp
2> delaunay2D.cpp
2>d:\workspace\grower\corelib\include\containers/list/list.h(74): error C2535: 'T &CoreLib::List<T,Allocator>::operator [](size_t)': member function already defined or declared
2> d:\workspace\grower\corelib\include\containers/list/list.h(72): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2> d:\workspace\grower\corelib\include\containers/list/list.h(105): note: see reference to class template instantiation 'CoreLib::List<T,Allocator>' being compiled
2>d:\workspace\grower\corelib\include\containers/list/list.h(75): error C2535: 'const T &CoreLib::List<T,Allocator>::operator [](size_t) const': member function already defined or declared
2> d:\workspace\grower\corelib\include\containers/list/list.h(73): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2>d:\workspace\grower\corelib\include\containers\list\list.inl(274): error C2995: 'const T &CoreLib::List<T,Allocator>::operator [](size_t) const': function template has already been defined
2> d:\workspace\grower\corelib\include\containers/list/list.h(73): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2>d:\workspace\grower\corelib\include\containers\list\list.inl(286): error C2995: 'T &CoreLib::List<T,Allocator>::operator [](size_t)': function template has already been defined
2> d:\workspace\grower\corelib\include\containers/list/list.h(72): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2> delaunay3D.cpp
2>d:\workspace\grower\corelib\include\containers/list/list.h(74): error C2535: 'T &CoreLib::List<T,Allocator>::operator [](size_t)': member function already defined or declared
2> d:\workspace\grower\corelib\include\containers/list/list.h(72): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2> d:\workspace\grower\corelib\include\containers/list/list.h(105): note: see reference to class template instantiation 'CoreLib::List<T,Allocator>' being compiled
2>d:\workspace\grower\corelib\include\containers/list/list.h(75): error C2535: 'const T &CoreLib::List<T,Allocator>::operator [](size_t) const': member function already defined or declared
2> d:\workspace\grower\corelib\include\containers/list/list.h(73): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2>d:\workspace\grower\corelib\include\containers\list\list.inl(274): error C2995: 'const T &CoreLib::List<T,Allocator>::operator [](size_t) const': function template has already been defined
2> d:\workspace\grower\corelib\include\containers/list/list.h(73): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2>d:\workspace\grower\corelib\include\containers\list\list.inl(286): error C2995: 'T &CoreLib::List<T,Allocator>::operator [](size_t)': function template has already been defined
2> d:\workspace\grower\corelib\include\containers/list/list.h(72): note: see declaration of 'CoreLib::List<T,Allocator>::operator []'
2> halfedge.cpp
2> quaternion.cpp
2> lowDiscrepancy.cpp
2> random.cpp
2> sphere.cpp
2> Generating Code...
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
This appears to point to an issue in the CoreLib library (corelib\include\containers/list/list.h) but I'm at a loss as to how to solve this. Any pointers?
Hi,
I'm trying to compile this for Maya 2016 on Windows 10/Visual Studio 2015. CoreLib compiles successfully, but when I try to compile RenderLib I get the following error:
This appears to point to an issue in the CoreLib library (corelib\include\containers/list/list.h) but I'm at a loss as to how to solve this. Any pointers?
Thanks!