fails with mingw

6 views
Skip to first unread message

rogerdpack

unread,
Dec 14, 2009, 3:28:55 PM12/14/09
to google-sparsehash
one of the unit tests doesn't build with mingw...

src/hashtable_unittest.cc:597: error: `TmpFile' was not declared in
this scope

The kicker is--I don't see windows' TmpFile' mentioned on msdn
anywhere--am I mistaken here somewhere?

Thanks.
r

rogerdpack

unread,
Dec 14, 2009, 5:24:02 PM12/14/09
to google-sparsehash
I also get this warning a good deal

C:/installs/devkit-3.4.5r3-20091110/devkit/gcc/3.4.5/bin/../lib/gcc/
mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_uninitialized.h:
82: warning: '__cur' might be used uninitialized in this function

if it's of any use to anybody...
-r

Craig Silverstein

unread,
Dec 14, 2009, 7:29:43 PM12/14/09
to google-s...@googlegroups.com
Thanks for the bug report. Can you file it at
http://code.google.com/p/google-sparsehash/issues/list
so I can track it?

The simple solution for you, I believe, is to look for the line
#ifndef WIN32 // windows defines its own version
in hashtable_unittest.cc and change it to
#ifdef _MSC_VER // windows defines its own version

Let me know if that works for you.

craig
Reply all
Reply to author
Forward
0 new messages