[texworks] Error while compiling r. 548

Jonathan Kew jfkthame at googlemail.com
Tue Jan 26 16:52:25 CET 2010


On 26 Jan 2010, at 14:21, Alain Delmotte wrote:

> Hi!
> 
> I just updated my source with r.548 and I get an error when compiling:
> --------------------------------------------
> src/ScriptManager.cpp: In member function 'void ScriptManager::treeSelectionChan
> ged()':
> src/ScriptManager.cpp:140: erreur: expected unqualified-id before 'struct'
> src/ScriptManager.cpp:140: erreur: expected initializer before 'struct'
> src/ScriptManager.cpp:141: erreur: expected primary-expression before 'struct'
> src/ScriptManager.cpp:141: erreur: expected ',' or ';' before 'struct'
> src/ScriptManager.cpp:142: erreur: expected primary-expression before 'struct'
> src/ScriptManager.cpp:142: erreur: expected ',' or ';' before 'struct'
> mingw32-make[1]: *** [obj/ScriptManager.o] Error 1
> mingw32-make[1]: Leaving directory `C:/texworks/texworks'
> mingw32-make: *** [release] Error 2
> 
> C:\texworks\texworks>
> --------------------------------------------
> I am using MinGW.
> 
> Alain
> 

Yes, I get the same failure. Apparently the name "interface" is #defined as a macro, presumably somewhere in the Windows headers, and that breaks the build.

In r.549 I've renamed the variable to avoid this issue. It now builds for me with MinGW.

JK




More information about the texworks mailing list