chemeris / msinttypes

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

Build error when stdint.h is not in the project's include paths list #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the msinttypes directory is not in the project include paths list, a
build error is thrown from inttypes.h attempting to include stdint.h.

Steps to reproduce:
1. In Visual Studio, create a new empty C++ project.
2. Place the msinttypes files in the directory "<PROJECT DIR>/msinttypes".
3. Add the attached Main.cpp file to the project.
4. Attempt to build.

Realized output:
Build error: "fatal error C1083: Cannot open include file: 'stdint.h': No
such file or directory"

Expected output:
Project should build successfully.

Fix:
In inttypes.h, #include "stdint.h" rather than #include <stdint.h> (i.e.
use quotes rather than square brackets).

Original issue reported on code.google.com by louse...@gmail.com on 24 Aug 2009 at 3:52

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for you report!
This is fixed in r26 now, new download is available.
Sorry for long time to fix.

Original comment by alexander.chemeris on 2 Oct 2009 at 9:41