From a fresh hg repository:
<<<
mkdir builddir
cd builddir
…/configure
make
returns:
<<<
libtool: compile: gcc -g -O3 -DGENERATED_CONFIG_H -Iinclude -I…/include -mmmx -m3dnow -msse -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL.lo -c …/src/SDL.c -fPIC -DPIC -o build/.libs/SDL.o
In file included from …/include/SDL_main.h:25:0,
from …/include/SDL.h:72,
from …/src/SDL.c:25:
…/include/SDL_stdinc.h:124:1: error: unknown type name ?int8_t?
…/include/SDL_stdinc.h:128:1: error: unknown type name ?uint8_t?
[snip]
It seems that both include/SDL_config.h and
builddir/include/SDL_config_generated.h use _SDL_config_h as include guards, so
the content of include/SDL_config_generated.h is ignored (because SDL_config.h
includes SDL_config_generated.h)
Good catch, thanks!On Mon, Jan 16, 2012 at 5:34 PM, Christopher Gautier wrote:
Hi,
From a fresh hg repository:
<<<
mkdir builddir
cd builddir
…/configure
make
returns:
<<<
libtool: compile: gcc -g -O3 -DGENERATED_CONFIG_H -Iinclude -I…/include
-mmmx -m3dnow -msse -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H
-Wall -MMD -MT build/SDL.lo -c …/src/SDL.c -fPIC -DPIC -o
build/.libs/SDL.o
In file included from …/include/SDL_main.h:25:0,
from …/include/SDL.h:72,
from …/src/SDL.c:25:
…/include/SDL_stdinc.h:124:1: error: unknown type name ?int8_t?
…/include/SDL_stdinc.h:128:1: error: unknown type name ?uint8_t?
[snip]
It seems that both include/SDL_config.h and
builddir/include/SDL_config_generated.h use _SDL_config_h as include
guards, so
the content of include/SDL_config_generated.h is ignored (because
SDL_config.h
includes SDL_config_generated.h)