I downloaded the ANTLR C target examples from antlr.org website and happened to execute one of the programs i.e Fuzzy. I use C runtime library - libantlr3c-3.0.1 and antlr-3.5 version. Initially was getting an error - unable to load shared file -libantlr3c.so. Then i did ldconfig, after which was able to generate executable file but when i do ./fuzzy i get segmentation fault error as mentioned below. Any information on this would be of great help.
Compilation Steps: gcc main.c FuzzyJava.c -lantlr3c -o fuzzy -I/root/antlr/include -I/root/antlr -I/root/antlr/lib -I/root/antlr/libantl3c-3.2 -I/root/libr -I/root/fuzzy -I/root/antlr-runtime-3.5
after this an executable file is getting generated, but later when ./fuzzy-
root@dell35:~/fuzzy# ./fuzzy
Segmentation fault
--