【发布时间】:2015-01-06 20:24:01
【问题描述】:
我正在尝试在我的 imac 上编译一个程序,该程序使用 opengl 和 glut 运行神经网络。 我正在使用 mac 框架来编译 opengl 和 glut 但我仍然收到此错误。我有一种感觉,我缺少一些要编译的库。
这是输出:
$ gcc gpu.c -o gpu -lfann -lm -framework OpenGL -framework GLUT
Undefined symbols for architecture x86_64:
"_copyMaskToTexture", referenced from:
_main in gpu-cb634f.o
"_copyVectorToTexture", referenced from:
_main in gpu-cb634f.o
"_copyWeightsToTexture", referenced from:
_main in gpu-cb634f.o
"_destroyLayer", referenced from:
_main in gpu-cb634f.o
"_generateLayer", referenced from:
_main in gpu-cb634f.o
"_init", referenced from:
_main in gpu-cb634f.o
"_initOpenGL", referenced from:
_main in gpu-cb634f.o
"_printLayer", referenced from:
_main in gpu-cb634f.o
"_run", referenced from:
_main in gpu-cb634f.o
(maybe you meant: _run_time)
"_setInput", referenced from:
_main in gpu-cb634f.o
"_setOutput", referenced from:
_main in gpu-cb634f.o
"_test", referenced from:
_main in gpu-cb634f.o
ld: symbol(s) not found for architecture x86_64
【问题讨论】: