Hello World

とりあえず mac のヘッダのありかが分かった。/usr/local/lib/gauche/0.9/include らしい。どうやって探したのか忘れましたが、/usr/local とか /opt/local とかを見てたら、だったんだと思います。

サンプル作ってみた。とりあえず以下をナニして

#include <stdio.h>
#include <gauche.h>

int main(void)
{
	printf("Hello World!\n");

	return 0;
}

コンパイルできるかどうか。

$ gcc -o test main.c -Wall -g
main.c:2:20: error: gauche.h: No such file or directory
$ gcc -o test main.c -Wall -g -I/usr/local/lib/gauche/0.9/include
$ 

-I 付けないと駄目ですか。ちなみに libgauche は /usr/local/lib/libgauche.dylib というナニで良いのかなぁ。/usr/lib 配下には無い。/opt/local/lib 配下には同じモノがある様子。