On 17 April 2013 06:21, Enrico Tröger enrico.troeger@uvena.de wrote:
On 16/04/13 20:26, Dimitar Zhekov wrote:
Hi,
When I run 'python waf configure' under Windows, it detects msvc before gcc, but 'python waf make' produces lots of:
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'
warnings, and then stops with:
bibtex.c ...\geanylatex\src\templates.h(81) : error C2143: syntax error : missing ')' before '*' ...\geanylatex\src\templates.h(81) : error C2143: syntax error : missing '{' before '*' ...\geanylatex\src \templates.h(81) : error C2040: 'gpointer' : 'int' differs in levels of indirection from 'void *' ...\geanylatex\src \templates.h(81) : error C2143: syntax error : missing ';' before '*' ...\geanylatex\src \templates.h(81) : error C2059: syntax error : ')'
This is with geany-plugins 2013-03-12.
Info(gcc) says that "-m[no-]ms-bitfields is provided for the Microsoft Windows X86 compilers to match the native Microsoft compiler", so it's obviously useless for the MS compiler itself.
The errors may be caused by cl confusing 'template' with the C++ keyword, I haven't checked.
Do we support msvc in the first place?..
I'd say not yet. I don't have MSVC and so could not test it. Do you have any clue where the -mms-bitfields comes from? I couldn't find any reference in the whole repository.
Would Waf not set the options?
If the errors are only because of a naming clash, this would be quite easy to fix I guess.
Btw, does Geany build with MSVC?
Note that as I understand it, it would not necessarily work to use a plugin compiled with msvc and a Geany compiled with gcc. It might, but no guarantee.
Cheers Lex
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel