[Trilinos-Users] Tpetra Windows MSVC compilation
GUEDON Stéphane
stephane.guedon at doceapower.com
Mon Mar 9 04:33:42 MDT 2015
I would like to inform that *Tpetra* cannot be compiled with Windows
MSVC compiler without this little fix.
Add the following code lines at the beginning of
"packages/tpetra/src/Tpetra_ConfigDefs.hpp":
#if defined(_MSC_VER)
# define *NOMINMAX*
# include <windows.h>
# include <limits>
#endif
Otherwise, you will have problems with the use of:
|std::numeric_limits<Ordinal>::min()
||std::numeric_limits<|||Ordinal|>::max()|
Moreover, you will have to add the following lines at the beginning of
"packages/tpetra/src/MurmurHash3.hpp":
#if defined(_MSC_VER) && (_MSC_VER < 1600)
*#include <windows.h>*
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
typedef unsigned __int64 uint64_t;
// Other compilers
#else // defined(_MSC_VER)
...
Steph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150309/8f262cc6/attachment.html>
More information about the Trilinos-Users
mailing list