首页 > 技术点滴 > can not be used when making a shared object; recompile with -fPIC

can not be used when making a shared object; recompile with -fPIC

2009年8月13日 baoz 阅读评论 1,011 views

编译的时候出现can not be used when making a shared object; recompile with -fPIC错误

解决办法./configure –with-pic –enable-shared=no

包子猜您可能还喜欢下列文章:

  1. 64位系统编译PHP+mysql的问题
  2. Making Secure Code Easier
  3. POSSIBLE BREAK-IN ATTEMP
  4. nginx+php
  5. squid做cache server

分类: 技术点滴 标签:
  1. xi4oyu
    2009年8月13日18:42 | #1

    64位机器吧,我也遇到过

  2. 2009年8月13日19:29 | #2

    是的,64位的。

  3. hello
    2010年6月10日10:03 | #3

    这样编译是可以通过但是-enable-shared=no no掉了libevent就生成不了动态库了