freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Build errors with MSVC


From: John Emmas
Subject: [ft-devel] Build errors with MSVC
Date: Wed, 22 Oct 2014 11:06:08 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Hi guys, I updated freetype from git master (this morning) and I'm getting these errors when compiling cff.c (technically, when compiling cffobjs.c):-

src/cff/cffobjs.c(1095) : warning C4003: not enough actual parameters for macro 'SET_DARKENING_PARAMETERS_0'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : '<'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : ';'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : ';'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : ';'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : ';'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : ';'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : ';'
    src/cff/cffobjs.c(1095) : error C2059: syntax error : ';'

As you can see, the errors are all at line 1095 of 'src/cff/cffobjs.c'. Lines 1094 and 1095 look like this:-

    SET_DARKENING_PARAMETERS( driver,
                              CFF_CONFIG_OPTION_DARKENING_PARAMETERS );

Prior to this morning's update, that same section previously looked like this AFAICT:-

    driver->darken_params[0] =  500;
    driver->darken_params[1] =  400;
    driver->darken_params[2] = 1000;
    driver->darken_params[3] =  275;
    driver->darken_params[4] = 1667;
    driver->darken_params[5] =  275;
    driver->darken_params[6] = 2333;
    driver->darken_params[7] =    0;

So my guess is that some kind of problem's crept in when converting all that lot to a macro. My first thought was that maybe 'ftoption.h' wasn't getting #included, so I deliberately #included it but that didn't make any difference.

I then changed lines 1094 and 1095 to look like this (note that it now uses 'SET_DARKENING_PARAMETERS_0'):-

    SET_DARKENING_PARAMETERS_0 ( driver,
                              500, 400, 1000, 275, 1667, 275, 2333, 0 );

The above seems to compile successfully.  So I then tried this:-

    SET_DARKENING_PARAMETERS_0 ( driver,
                              CFF_CONFIG_OPTION_DARKENING_PARAMETERS );

but that gets me back to the same set of errors that I had in the first place. So I'm guessing that MSVC is objecting to something about 'CFF_CONFIG_OPTION_DARKENING_PARAMETERS'. Are there any other tests I could do that might help track this down?

John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]