ignoring file lib.a, file was built for archive which is not the architecture being linked (x86_64)

前端 未结 3 1250
谎友^
谎友^ 2021-01-17 02:59

I\'m trying to code a printf clone. I\'ve built a library file called \"libftprintf.a\" but when I try to use it, I get the following error, on Mac OSX 10.8.5:



        
3条回答
  •  [愿得一人]
    2021-01-17 03:47

    Use libtool -static -o instead of ar.

    Static library link issue with Mac OS X: symbol(s) not found for architecture x86_64

提交回复
热议问题