Mac OS X 10.7 で
彼らがここで言ったように、 私はこのファイルhttp://www.imagemagick.org/source/wand.cでこのコマンドを実行しますhttp://www.imagemagick.org/script/magick-wand.php
cc -o wand `pkg-config --cflags --libs MagickWand` wand.c
エラーが発生しました:
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
しかし、gcc は正常に動作します。
gcc -o wand `pkg-config --cflags --libs MagickWand` wand.c
それはなぜですか?これについてgccとccの違いを知りたいです。
参考までに、このhttp://www.imagemagick.org/script/install-source.phpに従って ImageMagick をインストールしました。私が従わなかった唯一のコマンドはsudo ldconfig /usr/local/lib
、私の Mac にはldconfig
ここがないためです。