I was recently introduced with the compiler design course in our college, so I started working with lex and yacc files. But in the way I am struck at a point where I am not able to find the solution.
The error that I am getting while compiling is:
gcc: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
I first installed flex,bison and Dev-Cpp in windows,then added the bin files path into the system environmental variables.
-
Created a lex file named prime_number.l
-
opened the working directory in the command prompt
-
used flex prime_number.l command
-
Now, used gcc lex.yy.c
-
gave me the error as
gcc: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml%5C%5C%5C%5C%5C> for instructions.
Puneeth Kondarasi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.