Compilation problems under MS Visual Studio 2005

Our old place to report Bugs, it's not used anymore. To report bugs, please read this topic.
Locked
MarkoSan
Greenhorn
Posts: 10
Joined: 29 Jan 2007, 00:52

Compilation problems under MS Visual Studio 2005

Post by MarkoSan »

Hello!

I am trying to compile the latest trunk which I gor from svn directory. I use MS Visual Studio 2005 Proffesional and once I try to compile warzone project, i get:
------ Rebuild All started: Project: Warzone2100, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'Warzone2100', configuration 'Debug|Win32'
Generating parser based on grammar...
..\lib\framework\strres_parser.y:19: unknown character: `\r'
..\lib\framework\strres_parser.y:19:    Skipping to next %
..\lib\framework\strres_parser.y:50: unknown character: `\r'
..\lib\framework\strres_parser.y:50:    Skipping to next %
..\lib\framework\strres_parser.y:52: unknown character: `\r'
..\lib\framework\strres_parser.y:52:    Skipping to next %
..\lib\framework\strres_parser.y:56: unknown character: `\r'
..\lib\framework\strres_parser.y:56:    Skipping to next %
..\lib\framework\strres_parser.y:59: `' is invalid in %token
..\lib\framework\strres_parser.y:59:    Skipping to next %
..\lib\framework\strres_parser.y:60: `' is invalid in %token
..\lib\framework\strres_parser.y:60:    Skipping to next %
..\lib\framework\strres_parser.y:62: invalid input: `\r'
..\lib\framework\strres_parser.y:63: invalid input: `\r'
..\lib\framework\strres_parser.y:64: invalid input: `\r'
..\lib\framework\strres_parser.y:65: invalid input: `\r'
..\lib\framework\strres_parser.y:66: invalid input: `;'
..\lib\framework\strres_parser.y:66: invalid input: `\r'
..\lib\framework\strres_parser.y:67: invalid input: `\r'
..\lib\framework\strres_parser.y:68: type clash (`' `sval') on default action
..\lib\framework\strres_parser.y:68: invalid input: `\r'
..\lib\framework\strres_parser.y:69: invalid input: `{'
..\lib\framework\strres_parser.y:69: invalid input: `\r'
..\lib\framework\strres_parser.y:70: invalid input: `\r'
..\lib\framework\strres_parser.y:71: ill-formed rule: initial symbol not followed by colon
..\lib\framework\strres_parser.y:71: invalid input: `('
..\lib\framework\strres_parser.y:71: invalid input: `!'
..\lib\framework\strres_parser.y:71: ill-formed rule: initial symbol not followed by colon
..\lib\framework\strres_parser.y:71: invalid input: `('
..\lib\framework\strres_parser.y:71: ill-formed rule: initial symbol not followed by colon
..\lib\framework\strres_parser.y:71: invalid input: `,'
..\lib\framework\strres_parser.y:71: invalid input: `$'
..\lib\framework\strres_parser.y:71: invalid input: `1'
..\lib\framework\strres_parser.y:71: invalid input: `,'
..\lib\framework\strres_parser.y:71: invalid input: `$'
..\lib\framework\strres_parser.y:71: invalid input: `2'
..\lib\framework\strres_parser.y:71: invalid input: `)'
..\lib\framework\strres_parser.y:71: invalid input: `)'
..\lib\framework\strres_parser.y:71: invalid input: `\r'
..\lib\framework\strres_parser.y:72: invalid input: `{'
..\lib\framework\strres_parser.y:72: invalid input: `\r'
..\lib\framework\strres_parser.y:73: ill-formed rule: initial symbol not followed by colon
..\lib\framework\strres_parser.y:73: invalid input: `\r'
..\lib\framework\strres_parser.y:74: invalid input: `}'
..\lib\framework\strres_parser.y:74: invalid input: `\r'
..\lib\framework\strres_parser.y:75: invalid input: `}'
..\lib\framework\strres_parser.y:75: invalid input: `\r'
..\lib\framework\strres_parser.y:76: invalid input: `;'
..\lib\framework\strres_parser.y:76: invalid input: `\r'
..\lib\framework\strres_parser.y:77: invalid input: `\r'
Project : error PRJ0019: A tool returned an error code from "Generating parser based on grammar..."
Build log was saved at "file://c:\Documents and Settings\markofr.NESRAMNIK\Desktop\warzoneSource\win32\Debug\BuildLog.htm"
Warzone2100 - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
What is wrong?
User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Compilation problems under MS Visual Studio 2005

Post by Watermelon »

do you have the correct version of bison/flex installed?

I never used MSVC to compile .l or .y files,I just use bison/flex manually to compile them into .c and .h files.

edit:
I think it's the same problem:

http://wz2100.net/forum/index.php?topic=432.msg3449
tasks postponed until the trunk is relatively stable again.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Compilation problems under MS Visual Studio 2005

Post by DevUrandom »

I will have a look and try to find out what causes this...
Currently I am a bit confused, as it worked flawlessly without any problems here, right from the minute I got the BuildRules from MS...
For now: Bison 1.8 and Flex 2.5 should be installed, especially Bison < 2.2 is known to not work.
Locked