0

I'm building Apache thrift compiler on Windows 7 using Visual Studio 2010. I got build error as shown below: flex: can't open src\thrift\thriftl.cc

I can't find the file thriftl.cc in all folder or any sub-folders. Below is my thrift folder. Could anyone help me?

enter image description here

The whole error is : PreBuildEvent: flex: can't open src\thrift\thriftl.cc C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: The command "flex -o "src\thrift\thriftl.cc" src/thrift/thriftl.ll && bison -y -o "src\thrift\thrifty.cc" --defines="src\thrift\thrifty.hh" src/thrift/thrifty.yy C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: :VCEnd" exited with code 1.

So how can I do to remove this error and correctly. I have downloaded the flex.exe and set PATH pointing to it.

Added: I also run the flex command in cmd and got the same error. Please see screen print in red rectangle below. And I also tried creating an empty thriftl.cc and got the error "flex: could not create", may be neglected. I presume the "src\thrift\thriftl.cc" should be an output not existing before the flex command.

enter image description here

Wason
  • 1,341
  • 1
  • 13
  • 26

0 Answers0