How to statically link libstdc++

后端 未结 1 660
慢半拍i
慢半拍i 2020-12-16 02:00

I am trying to get my program working in another machine where libstdc++ versions is different. I am developing and compiling it on netbeans. I have specified the option -st

相关标签:
1条回答
  • 2020-12-16 02:03

    Not sure of the exact circumstances here, but I ran into a similar problem just now with different versions of Mac OS X and gcc. I worked around it by copying the actual dylib I wanted into the same directory as the executable and changing DYLD_LIBRARY_PATH to have it search there first before /usr/lib.

    0 讨论(0)
提交回复
热议问题