abc.a file not recognized: File format not recognized. error in makefile
I am using mingw compiler. When I execute the makefile I am able to compile and generate object files properly, but I have a problem with linking开发者_C百科 part. I have 3 library files to include; I am including those lib files, and the error I am getting is:
"c:\x\abc.a.file is not recognized:File format not recognized"
Here is part of the makefile:
LDFLAGS = -Lxxx\
-LAAA\
-labc
XXX or AAA are the path of lib files to be included.
gcc -o $@ $(OBJS) $(LDFLAGS).. (OBJS)
contains the list of object files it should generate or consider while generating the target.
精彩评论