I am working on a parser that parses a json string, and I want to make it a library. The problem is that when I use ld to link the library I wrote, an error message appears:
main.o: In function `main': main.c:(.text+0x0): multiple definition of `main' json-parser.o:/build/buildd/flex-2.5.35/libmain.c:29: first defined here
how can i fix this? thanks.
parsing flex-lexer lex bison yacc
mapcan
source share