I changedbison -v -d ...
To bison -d ...
In makefile
in codeblocks
.but when compile nothing has been changed and shows error.
use Code::Block 16.01 so I get this error:
-------------- 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
my Makefile
is here:
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
CodeBlocks snapshot 1
also you can refer to want to compile product Fortran to c So anybody could help me.
Can I build my project in visual studio 2015 as https://msdn.microsoft.com/en-us/library/txcwa2xx.aspx Is it compatible makefile project?
Regards