Re: libSystem.B.dylib not found

http://lists.apple.com/archives/xcode-users/2009/Oct/msg00674.html

Snow Leopardではちゃんと動くのですが、Tigerなどでは、下記のようなエラーがでて、動きません。

Xcode 3.2 Release Notes:
"Note: GCC 4.2 cannot be used with the Mac OS X 10.4u SDK. If you want to build targets using the 10.4u SDK on Xcode 3.2, you must set the Compiler Version to GCC 4.0"

Xcode 3.1 Release Notes had a significant addition:
"Note that neither gcc-4.2 nor llvm-gcc-4.2 will compile code against the 10.4u or earlier SDK, or deploy for Mac OS X 10.4 or earlier."


Link (dyld) error:
Symbol not found: ___stack_chk_guard


You could try -fno-stack-protector in Other C Flags.

 -fno-stack-protector をつけると、___stack_chk_guard は消えます。


しかし、___memset_chk とかは、残ってしまいますね。(汗)

Tigerでは対応してないので、Tigerで実行しようとしたときに、実行時リンクエラーでとまってしまいます。(汗)


結局、オフの仕方が分からなかったので、Leopardでビルドすることにしました。(汗)
すると、*_chk という関数はなくなり、Tigerでも実行できるようになりました。