Re: [AD] msvc7 system.h error

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2006-06-14, aj <aj@xxxxxxxxxx> wrote:
>  >make
> Compiling Allegro for MSVC, optimised. Please wait...
> gcc -O -Wall -Werror  -o obj/msvc/runner.exe src/misc/runner.c
> obj/msvc/runner.exe C:/PROGRA~1/MICROS~2.NET/VC7/bin/cl @ -nologo 
> -DALLEGRO_SRC
> -W1 -Gd -MD -O2  -GL -I. -I./include -Foobj/msvc/alleg/allegro.obj -c 
> src/allegro.c
> allegro.c
> \4.3\include\allegro\system.h(107) : error C2121:'#' : invalid character 
> : possibly the result of a macro expansion
> \4.3\include\allegro\system.h(107) : error C2121:'#' : invalid character 
> : possibly the result of a macro expansion
> \4.3\include\allegro\system.h(107) : error C2181:illegal else without 
> matching if
> \4.3\include\allegro\system.h(107) : error C2121:'#' : invalid character 
> : possibly the result of a macro expansion
> \4.3\include\allegro\system.h(107) : error C2065:'endif' : undeclared 
> identifier
> \4.3\include\allegro\system.h(107) : error C2146:syntax error : missing 
> ';' before identifier 'uszprintf'
> \4.3\include\allegro\system.h(107) : error C2144:syntax error : 
> '<Unknown>' should be preceded by '<Unknown>'
> 

Is this a line ending problem?  Otherwise is it that MSVC doesn't line
preprocessor directives inside macros?

Btw, we were actually talking about the 4.2 branch before.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/