1
1

More than 5 years have passed since last update.

OSX MavericksでXlibを使ったプログラムをコンパイルする

Last updated at Posted at 2013-11-05

OSX 10.9 MacBook Pro Retina 15(2012)を使用

昔使Bていたコマンドの組み合わせがOSX Mavericksで使えなくなっていたので修正した。
以下のコマンドでコンパイルできる。

gcc $1 -I/opt/X11/include -L/opt/X11/lib -lX11

ちなみに、XQuartzを起動していないとsegmentation faultでプログラムが動かないので注意。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1