开发者

abc.a file not recognized: File format not recognized. error in makefile

开发者 https://www.devze.com 2023-03-28 20:43 出处:网络
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

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

精彩评论

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