Hi, Chris,

As you might have noticed that the problem is in the file stdint.h
distributed by Microsoft.  The solution might be for us to use only
C++ header files.  Will look into this possibility shortly.

John

PS: Here is a discussion page about this particular issue
<http://stackoverflow.com/questions/126279/c99-stdint-h-header-and-ms-visual-studio>



On 1/18/15 11:29 AM, Jacobsen, Chris J. wrote:
> ​Hello, when I run nmake for FastBit to compile on Windows as
> instructed in the README file in the win directory, I get the error
> below.  I'm guessing I need to change a #define within the Fast Bit
> code, but there are quite a few candidates for this, and I am not sure
> how to fix it.  Does anyone know how to fix this?
> 
> 
> Compiler: Visual Studio 2012 (I can tell the project files were for an
> older version, but I would really like to use the newer version
> because I want to port a newer project to use Fast Bit)
> Fast Bit Version: fastbit-2.0.1
> Operating System: Windows 8
> 
> *The command and error produced:*
> C:\Users\datahead8888\Documents\fastbit-2.0.1\win>nmake -f Win.mak all
> Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
> Copyright (C) Microsoft Corporation.  All rights reserved.
>         "C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC"\BIN\cl /nologo
> /D WIN32 /D _CONSOLE /D FASTBIT_MAX_WAIT_TIME=3 /D
> WITHOUT_FASTBIT_CONFIG_H /D W
> INVER=0x0501 -I ..\src -I
> "C:\Users\datahead8888\Documents\prebuilt-dll-2-9-1-re
> lease\include" -I . /MD /EHsc /GR /O2 /W1 /arch:SSE2 -c
> ../examples/ibis.cpp
> ibis.cpp
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(9) : error C2632: 'short' followed by 'short'
> is illegal
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(10) : error C2632: 'int' followed by 'int' is
> illegal
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(11) : error C2632: '__int64' followed by
> '__int64' is illegal
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(13) : warning C4114: same type qualifier used
> more than once
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(13) : error C2632: 'short' followed by
> 'short' is illegal
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(14) : warning C4114: same type qualifier used
> more than once
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(14) : error C2632: 'int' followed by 'int' is
> illegal
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(15) : warning C4114: same type qualifier used
> more than once
> C:\Program Files (x86)\Microsoft Visual Studio
> 11.0\VC\INCLUDE\stdint.h(15) : error C2632: '__int64' followed by
> '__int64' is illegal
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 11.0
> \VC\BIN\cl.EXE"' : return code '0x2'
> Stop.
> 
> *The part of Win.mak that has my configuration changes:*
> # $Id$
> # Makefile for nmake on windows using microsoft compiler visual C++ 7
> #
> #VC=C:\Tools\VS\VC
> VC="C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC"
> CXX=$(VC)\BIN\cl
> LINK=$(VC)\BIN\link
> OPT=/MD /EHsc /GR /O2 /W1 /arch:SSE2
> #OPT=/MD /EHsc /GR /Ox
> #INC=-I ..\src -I "C:\Tools\pthread\include" -I .
> INC=-I ..\src -I
> "C:\Users\datahead8888\Documents\prebuilt-dll-2-9-1-release\include" -I .
> DEF=/D WIN32 /D _CONSOLE /D FASTBIT_MAX_WAIT_TIME=3 /D
> WITHOUT_FASTBIT_CONFIG_H /D WINVER=0x0501
> #/INCREMENTAL:NO /NOLOGO
> #LIB=/LIBPATH:"$(VC)\Lib" /LIBPATH:"C:\Program Files\Microsoft
> SDKs\Windows\v6.0A\lib" /LIBPATH:"C:\Tools\pthread\lib"
> /SUBSYSTEM:CONSOLE pthreadVC2.lib psapi.lib advapi32.lib
> LIB=/LIBPATH:"$(VC)\Lib" /LIBPATH:"C:\Program Files\Microsoft
> SDKs\Windows\v6.0A\lib"
> /LIBPATH:"C:\Users\datahead8888\Documents\prebuilt-dll-2-9-1-release\lib\x86"
> /SUBSYSTEM:CONSOLE pthreadVC2.lib psapi.lib advapi32.lib
> # ******
> # for VisualStudio .Net and earlier, the following libpath is needed
> # /LIBPATH:"$(VC)\PlatformSDK\Lib"
> # to replace the second libpath argument above
> # ******
> CCFLAGS=/nologo $(DEF) $(INC) $(OPT)
> 
> Thank you,
> Chris Jacobsen
> 
> 
> _______________________________________________
> FastBit-users mailing list
> [email protected]
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
> 
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to