login about faq

After switching to 9.4.1 (from 9.4.0) for VC++ 11 (32-bit project), I receive the following compiler errors:

1>...\include\ck_inttypes.h(18): error C2371: 'int32_t' : redefinition; different basic types
1>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdint.h(10) : see declaration of 'int32_t'
1>...\include\ck_inttypes.h(19): error C2371: 'uint32_t' : redefinition; different basic types
1>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdint.h(14) : see declaration of 'uint32_t'

I should add that the project uses the v110_xp platform toolset.

asked Jul 10 '13 at 04:28

roan98dk's gravatar image

roan98dk
326192034

edited Jul 10 '13 at 04:34

I'll have a look.

(Jul 10 '13 at 11:29) chilkat ♦♦

Edit the ck_inttypes.h file to change this part:

Change from this:

#elif defined(CK_WINDOWS) || defined(WIN32) || defined(_WIN32) || defined(_WINDOWS) || defined(WINCE) || defined(BORLANDC) || defined(BCPLUSPLUS)

typedef short int16_t; typedef unsigned short uint16_t; typedef long int32_t; typedef unsigned long uint32_t;

#else

To this:

#elif defined(CK_WINDOWS) || defined(WIN32) || defined(_WIN32) || defined(_WINDOWS) || defined(WINCE) || defined(BORLANDC) || defined(BCPLUSPLUS)

#if !defined(_STDINT) typedef short int16_t; typedef unsigned short uint16_t; typedef long int32_t; typedef unsigned long uint32_t; #endif

#else

I will make this change in the downloads (just in the include, but not re-compiling)

link

answered Jul 10 '13 at 11:44

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

edited Jul 10 '13 at 11:44

I downloaded the fixed release and it solved the problem.

(Jul 11 '13 at 06:42) roan98dk
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×65
×62
×3
×2
×1

Asked: Jul 10 '13 at 04:28

Seen: 1,580 times

Last updated: Jul 11 '13 at 06:42

powered by OSQA