So far I've been working with g++ (on Windows), but for some reasons I want to use Code:Blocks to use sfml library (quite easy configuration, contrary to clean g++).
I use bison to create file.tab.c and file.tab.h (from file.y), I use flex for lex.yy.c (from file.l) and i have my own files containing functions needed for my project (file.cpp and file.h). So with g++ I compile it like that:
g++ lex.yy.c file.tab.c file.cpp -o file.exe
and it works fine. Now i want to compile these files with Code:Blocks and i get a strange error:
file.l:4:18: fatal error: cstdio: No such file or directory
Why on earth does it signal an error in file.l when this file isn't even included to my project (it just served to create lex.yy.c which i attached to project)? And I'm not sure about that but... main() is in file.tab.c so this is an entry point - can I specifically ask Code:Blocks to compile everything with g++ like I did in command line and there would be a chance for it to work? I have the latest version of Code:Blocks. Thanks in advance
//Edit: I can also add that i get the same error when i compile it from command line like that: gcc lex.yy.c.