This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sun, 2004-10-31 at 23:35, Povolotsky, Alexander wrote: > > Hi, > > > > I am getting "uint32_t" undefined in gen_crc32table.c when > > cross-compiling > > Linux 2.4.26 for ppc 32 arch ? > I am using cross-compiler generated by crosstool-0.28-rc36... > > Temporarily I "patched" it right in gen_crc32table.c : > > typedef unsigned int uint32_t > > > > Would you by any chance tell me where uint32_t is supposed to be defined ? Officially, in stdint.h, cf. http://www.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html Some folks prefer to include <inttypes.h> instead, because inttypes.h is known to be more portable than stdint.h (some systems have inttypes.h but don't have stdint.h), and inttypes.h is supposed to include stdint.h cf. http://www.opengroup.org/onlinepubs/009695399/basedefs/inttypes.h.html Some packages (bogusly) rely on sys/types.h providing uint<N>_t, because some OSes (namely Linux and BSD) also provide them there. However, this behavior doesn't conform to current standards and therefore should not be relied upon, cf. http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html Ralf ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |