Skipping Incompatible Libraries at compile

前端 未结 2 574
北荒
北荒 2020-11-28 08:39

When I try to compile a copy of my project on my local machine, I get an error stating that it \'s skipping over incompatible libraries. This isn\'t the case when I\'m mess

2条回答
  •  长情又很酷
    2020-11-28 09:16

    That message isn't actually an error - it's just a warning that the file in question isn't of the right architecture (e.g. 32-bit vs 64-bit, wrong CPU architecture). The linker will keep looking for a library of the right type.

    Of course, if you're also getting an error along the lines of can't find lPI-Http then you have a problem :-)

    It's hard to suggest what the exact remedy will be without knowing the details of your build system and makefiles, but here are a couple of shots in the dark:

    1. Just to check: usually you would add flags to CFLAGS rather than CTAGS - are you sure this is correct? (What you have may be correct - this will depend on your build system!)
    2. Often the flag needs to be passed to the linker too - so you may also need to modify LDFLAGS

    If that doesn't help - can you post the full error output, plus the actual command (e.g. gcc foo.c -m32 -Dxxx etc) that was being executed?

提交回复
热议问题