how to generate these files?

Discuss the future of Warzone 2100 with us.
User avatar
Ezio
Trained
Trained
Posts: 306
Joined: 24 Apr 2010, 16:42

how to generate these files?

Post by Ezio »

audp_lexer.cpp
audp_parser.cpp
chat_lexer.cpp
chat_parser.cpp
level_lexer.cpp
resource_parser.cpp
script_lexer.cpp
script_parser.cpp
scriptvals_parser.cpp
strres_lexer.cpp
strres_parser.cpp

build output

Code: Select all

1>------ Build started: Project: script, Configuration: Release Win32 ------
2>------ Build started: Project: gamelib, Configuration: Release Win32 ------
3>------ Build started: Project: framework, Configuration: Release Win32 ------
1>  Generating lexical analyser...
1>  Generating lexical analyser...
1>  Generating parser based on grammar...
1>  Generating parser based on grammar...
2>  Generating lexical analyser...
2>  Generating parser based on grammar...
3>  Generating lexical analyser...
3>  Generating lexical analyser...
3>  Generating parser based on grammar...
3>  Generating parser based on grammar...
2>  audp_lexer.cpp
2>  audp_parser.cpp
1>  chat_lexer.cpp
2>c1xx : fatal error C1083: Cannot open source file: 'audp_lexer.cpp': No such file or directory
1>  chat_parser.cpp
1>  script_lexer.cpp
1>  script_parser.cpp
1>c1xx : fatal error C1083: Cannot open source file: 'chat_parser.cpp': No such file or directory
1>c1xx : fatal error C1083: Cannot open source file: 'chat_lexer.cpp': No such file or directory
1>c1xx : fatal error C1083: Cannot open source file: 'script_lexer.cpp': No such file or directory
2>c1xx : fatal error C1083: Cannot open source file: 'audp_parser.cpp': No such file or directory
1>c1xx : fatal error C1083: Cannot open source file: 'script_parser.cpp': No such file or directory
3>  resource_parser.cpp
3>  strres_lexer.cpp
3>  strres_parser.cpp
3>c1xx : fatal error C1083: Cannot open source file: 'resource_parser.cpp': No such file or directory
3>c1xx : fatal error C1083: Cannot open source file: 'strres_lexer.cpp': No such file or directory
3>c1xx : fatal error C1083: Cannot open source file: 'strres_parser.cpp': No such file or directory
4>------ Build started: Project: Warzone2100, Configuration: Release Win32 ------
4>  Generating lexical analyser...
4>  Generating lexical analyser...
4>  Generating parser based on grammar...
4>  level_lexer.cpp
4>  scriptvals_parser.cpp
4>c1xx : fatal error C1083: Cannot open source file: 'level_lexer.cpp': No such file or directory
4>c1xx : fatal error C1083: Cannot open source file: 'scriptvals_parser.cpp': No such file or directory
========== Build: 0 succeeded, 4 failed, 8 up-to-date, 0 skipped ==========
weeks ago i manage to git warzone compiled by using old lexer and parser, not sure i get it from someone or managed to build it back there. until i click 'msvcdelparser' and those files are gone and visual studio keeps asking them. i have bison and flex just not sure what to do, or maybe i could get a latest copy of there files if you compiled it :3
thanks.
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: how to generate these files?

Post by Lord Apocalypse »

If the VC solution is setup properly it should run flex/bison first to generate the files before compiling. I don't remember how I got it to work.. I think you have to go in to the props or some such and modify them to create the correct files...

I don't know if I still have the files on my HD or not but I will try to look for them later today and attach them.
User avatar
Ezio
Trained
Trained
Posts: 306
Joined: 24 Apr 2010, 16:42

Re: how to generate these files?

Post by Ezio »

thanks :)
User avatar
Ezio
Trained
Trained
Posts: 306
Joined: 24 Apr 2010, 16:42

Re: how to generate these files?

Post by Ezio »

nevermind, i use visual studio command prompt to generate those files, seems normal cmd can't find flex and bison even after the PATH was set up