|
From: SourceForge.net <no...@so...> - 2007-03-31 10:07:00
|
Bugs item #1691376, was opened at 2007-03-30 15:36 Message generated for change (Comment added) made by cc979 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1691376&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mingw runtime Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: cc979 (cc979) Assigned to: Danny Smith (dannysmith) Summary: problem with 'bits.c' using w32api 3.9 Initial Comment: i get this error using mingw-runtime-3.12.tar.gz & w32api-3.9.tar.gz when compiling ffdshow-tryout, i does not happen when using mingw-runtime-3.11.tar.gz & w32api-3.8.tar.gz In file included from bits.c:33: common.h:220: error: conflicting types for 'uint32_t' d:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.0.4/../../../../include/stdint.h:32: error: previous declaration of 'uint32_t' was here common.h:223: error: conflicting types for 'int32_t' d:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.0.4/../../../../include/stdint.h:31: error: previous declaration of 'int32_t' was here common.h:225: error: conflicting types for 'int8_t' d:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.0.4/../../../../include/stdint.h:27: error: previous declaration of 'int8_t' was here cheers ---------------------------------------------------------------------- >Comment By: cc979 (cc979) Date: 2007-03-31 10:06 Message: Logged In: YES user_id=1265660 Originator: YES just tried with make CFLAGS=-ansi it throws more errors so i altered the code this #ifdef uint32_t typedef unsigned long uint32_t; typedef unsigned short uint16_t; typedef unsigned char uint8_t; typedef long int32_t; typedef short int16_t; typedef char int8_t; #endif is that the correct way to go about it ? cheers ---------------------------------------------------------------------- Comment By: cc979 (cc979) Date: 2007-03-31 09:35 Message: Logged In: YES user_id=1265660 Originator: YES thanks for the quick reply, i will find out ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2007-03-31 01:38 Message: Logged In: YES user_id=11494 Originator: NO Hello, The reason that this error with mingw-runtime-3.12 is that now stdlib.h include stdint.h which defines those C99 types. This is for the sake of new mscvrt functions. I suppose that code compiled with -std=c89 should not expose c99 types, but nor should it expose the msvcrt extensions that use uintptr_t. Does you code compile OK with -ANSI specified? Danny ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1691376&group_id=2435 |