matrakim / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

VS2010 compilation #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compile with VS2010
2.
3.

What is the expected output? What do you see instead?
hundreds of errors - no good

What version of the product are you using? On what operating system?
svn 771

Please provide any additional information below.
Attached patch fixes 771.

Original issue reported on code.google.com by stepan.h...@gmail.com on 9 Oct 2010 at 5:10

Attachments:

GoogleCodeExporter commented 8 years ago
Currently, we cannot reproduce this issue, since we are using only vs2008.

The patch indicates, that vs2010 does not support unordered_map. Is that true?

Original comment by opencollada2@googlemail.com on 11 Oct 2010 at 8:28

GoogleCodeExporter commented 8 years ago
vs2010 supports unordered_map, but using it causes other errors I was not able 
to fix.

Original comment by stepan.h...@gmail.com on 14 Oct 2010 at 6:05

GoogleCodeExporter commented 8 years ago
In the Visual Studio 2010 the hash struct does no more reside in the std::tr1 
namespace, instead it was moved into the namespace std

You can check for Visual Studio 2010 with the macro
#if _MSC_VER >= 1600
#endif

Original comment by klau...@gmail.com on 10 Nov 2010 at 12:24

GoogleCodeExporter commented 8 years ago
Hi, I am having the same effect with vs 2005 both 32 and 64 bit and cmake 2.8. 
The compiler reports thousands of errors starting with the hash<> it does not 
like. It seems to me that on windows, both 32 and 64 bit, the hash is defined 
somewhere else.

Original comment by georg.wu...@machineering.de on 17 Nov 2010 at 9:39

GoogleCodeExporter commented 8 years ago
Here is another patch that uses std namespace instead of std::tr1 namespace.

This patch introduces COLLADABU_HAVE_STD_UNORDERED_MAP and is now only defined 
for MSVC2010 (and greater).

Original comment by daCh...@gmail.com on 2 Jan 2011 at 10:27

Attachments:

GoogleCodeExporter commented 8 years ago
I have the same problem and just applied daChaac's patch to r788, which works 
very well.  :-)

Original comment by carsten....@cafu.de on 12 Jan 2011 at 10:49

GoogleCodeExporter commented 8 years ago
In addition to VS2010, I also fixed compilation for VS2005 and used the 
opportunity to clean-up and simplify the related preprocessor statements 
significantly.

As this not only affects VS2010, but also VS2005, and affects the details for 
Linux and Mac compilers as well, I submitted this as new issue 152 - please 
have a look there for details.

Original comment by carsten....@cafu.de on 16 Jan 2011 at 1:07

GoogleCodeExporter commented 8 years ago
Thanks for the patches! Will review them next week 

Original comment by opencollada on 16 Jan 2011 at 1:09

GoogleCodeExporter commented 8 years ago
Should have been fixed with issue 152.

Original comment by opencollada2@googlemail.com on 19 Jan 2011 at 8:08