我在 `codeblocks` 的 `makefile` 中将 `bison -v -d ...` 更改为 `bison -d ...` 但它出错了

I changed`bison -v -d ... `To `bison -d ...` In `makefile` in `codeblocks` but it make error

我在 codeblocks 中将 bison -v -d ... 更改为 bison -d ...makefile 中,但是编译时没有任何更改并显示错误。 使用 Code::Block 16.01 所以我得到这个错误:

   -------------- Build: Debug in testB (compiler: GNU GCC Compiler)---------------

 bison -v -d C:\Users\admin\Downloads\Compressed\f90toC\f90toC\f90.y -o C:\Users\admin\Downloads\Compressed\f90toC\f90toC/f90.parser.cc
Execution of 'bison -v -d C:\Users\admin\Downloads\Compressed\f90toC\f90toC\f90.y -o C:\Users\admin\Downloads\Compressed\f90toC\f90toC/f90.parser.cc' in 'D:\testB\testB' failed.

 -------------- Run: Debug in testB (compiler: GNU GCC Compiler)---------------

 Checking for existence: D:\testB\testB\bin\Debug\testB.exe

我的 Makefile 在这里:

CC = gcc  -ggdb
OBJ = f90main.o f90decl.o f90arg.o f90.tab.o lex.yy.o symb.o ptree.o \
      f90mod.o f90print.o

.c.o:
    $(CC) -c $<

all: f90

lex.yy.c:  f90.lex
    flex -i f90.lex

f90.tab.c: f90.y f90.h
    bison -d f90.y

f90: $(OBJ) f90.h
    $(CC) -o ff90 $(OBJ)

why:
    bison -d -v f90.y
clean:
    -rm *.o lex.yy.c f90.tab.c f90.tab.h f90.output

F = f90toC
tar:
    tar -cvf f90toC-test.tar $(F)/f90.lex $(F)/f90.y $(F)/*.h $(F)/*.c $(F)/tests $(F)/doc $(F)/Makefile $(F)/README $(F)/File_index

bak:
    cp *.c backup
    cp *.h backup
    cp *.y backup
    cp *.lex backup
    cp Makefile backup

代码块快照 1

也可以参考want to compile product Fortran to c 所以任何人都可以帮助我。

我可以在 visual studio 2015 年构建我的项目吗 https://msdn.microsoft.com/en-us/library/txcwa2xx.aspx 它是兼容的 makefile 项目吗?

此致

我按照

中的说明解决了我的问题

How to compile LEX/YACC files on Windows?

并使用这个项目

http://www.ncsa.illinois.edu/People/mdewing/f90toC/

并在命令中创建项目prompt.Not Visual Studio 2015 环境所以我使用 ff90.exe 将 fortran .f90 文件编译为 .c 文件作为提到的指令。但是 ff90.exe 不是很强大并且在这样的 tests.this与开发商有关