carlevans719 / msinttypes

Automatically exported from code.google.com/p/msinttypes
0 stars 0 forks source link

stdint.h is not available with Visual Studio 2012 #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add inttypes.h and stdint.h with include files of ffmpeg
2. build code
3. the compilation gives error
F:\Windows 
Project\zeranoe\ffmpeg-20130713-git-aac57c7-win32-dev\include\inttypes.h(49): 
error C2146: syntax error : missing ';' before identifier 'quot'

What is the expected output? What do you see instead?
should compile like previous release (specifically tested r26) of msinttypes

What version of the product are you using? On what operating system?
r29 of msinttypes, Visual Studio 2012

Please provide any additional information below.
There are 3 lines in stdint.h

#if _MSC_VER >= 1600 // [
#include <stdint.h>
#else // ] _MSC_VER >= 1600 [

These 3 lines are responsible for the error. I have not found stdint.h with VS 
2012. To solve the issue I had temporarily replace it like this

#if _MSC_VER >= 1800 // [
#include <stdint.h>
#else // ] _MSC_VER >= 1800 [

I would like to know how the authors retained stdint.h with Visual Studio 2012.

Original issue reported on code.google.com by Uni...@gmail.com on 15 Jul 2013 at 7:47

GoogleCodeExporter commented 8 years ago
The offending revision is r28, which fixes issue #10. Please see if the fix in 
#10 is invalid.

Original comment by timothygu99 on 25 Nov 2013 at 4:35

GoogleCodeExporter commented 8 years ago
Visual Studio 2012 includes stdint.h at C:\Program Files (x86)\Microsoft Visual 
Studio 11.0\VC\include\stdint.h, at least in the version I have installed here.

Original comment by TBBleTB...@gmail.com on 3 Apr 2014 at 5:05

GoogleCodeExporter commented 8 years ago
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdint.h does 
not exist in my fairly new installation (just installed last week).

Original comment by TMTC...@gmail.com on 24 Apr 2014 at 9:50