开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜