Code:
[b12573@iptel7] __linux_build_tmp $ gcc -o test test.c libMGCL.a -Wall
test.c: In function `main':
test.c:8: warning: implicit declaration of function `yyparse'
/usr/bin/ld: libMGCL.a(MGCL_parser.o): Relocations in generic ELF (EM: 20)
libMGCL.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
I get this error when I try to compile a .c source

test.c

Code:
#include <stdio.h>


int main()
{
        printf("Hello world\n");

        yyparse();

        return 0;
}
the yyparse() is a function from libMGCL.a

Where do I go wrong? I don't know very much about linking libraries and such!