[Trilinos-Users] Tpetra Windows MSVC compilation

lallas92 . tbinford at gmail.com
Mon Mar 16 09:12:08 MDT 2015


I had similar problems on MSVC with ML.  Are you sure the problem that
required adding windows.h wasn't an include path problem?  I ask because I
found that the path to win_interface is incorrect after configure/generate
from CMake-GUI.



On Mon, Mar 9, 2015 at 5:33 AM, GUEDON Stéphane <
stephane.guedon at doceapower.com> wrote:

>  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
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> https://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150316/383e9754/attachment.html>


More information about the Trilinos-Users mailing list