[MPICH] compilation under VS2005

devteam devteam at transvalor.com
Mon Oct 16 03:22:54 CDT 2006


Hello everyone,

We've trying to compile mpich2 under VS2005, with no success yet... here is the error message.

Any suggestions on what's going wrong ?

Thank you,

Andres


in wsiapi.h


#if !defined(_WSPIAPI_COUNTOF)
#if !defined(__cplusplus)
#define _WSPIAPI_COUNTOF(_Array) (sizeof(_Array) / sizeof(_Array[0]))
#else
template <typename __CountofType, size_t _N>
char (&__wspiapi_countof_helper(__CountofType (&_Array)[_N]))[_N];
#define _WSPIAPI_COUNTOF(_Array) sizeof(__wspiapi_countof_helper(_Array))
#endif
#endif

error message: 

1>------ Build started: Project: smpd_util, Configuration: Debug Win32 ------
1>Compiling...
1>smpd_adreg.cpp
1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\wspiapi.h(44) : error C2894: templates cannot be declared to have 'C' linkage
1>Build log was saved at "file://d:\DEVELOPPEMENTS\MPICH2\Argonne\mpich2-1.0.2p1\mpich2-1.0.2p1\src\pm\smpd\smpd_utilDebug\BuildLog.htm"
1>smpd_util - 1 error(s), 0 warning(s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20061016/04a3501b/attachment.htm>


More information about the mpich-discuss mailing list