COMP1511UNSW / dcc

dcc - a C compiler which explains errors to novice programmers
GNU General Public License v3.0
156 stars 19 forks source link

dcc doesn't accept - for stdin #74

Open Dylan-Brotherston opened 3 years ago

Dylan-Brotherston commented 3 years ago
$ sed 's/#include \"grid.h\"/#include \"grid.h\"/' ../files.cp/minesweeper.c | gcc --include-directory=. -x c -o minesweeper -
[works]

$ sed 's/#include \"grid.h\"/#include \"grid.h\"/' ../files.cp/minesweeper.c | dcc --include-directory=. -x c -o minesweeper -
dcc: error: your program does not contain a main function - a C program must contain a main function
Dylan-Brotherston commented 3 years ago

/dev/stdin also doesn't work.