【发布时间】:2012-04-26 19:43:17
【问题描述】:
我正在为我的 CS 课程制作 MP。我们的计算机实验室在 Linux 操作系统下工作,但我尝试在我的家用计算机 (Mac OS X) 上编译代码。我收到以下错误:
Undefined symbols for architecture x86_64:
"_tdestroy", referenced from:
_dictionary_destroy in libdictionary.o
_dictionary_destroy_free in libdictionary.o
ld: symbol(s) not found for architecture x86_64
我尝试在网上寻找解决方案,但没有成功。我们在 Makefile 中使用以下宏:
CC = gcc
INC = -I.
FLAGS = -g -W -Wall
LIBS = -lpthread
有什么想法吗?
【问题讨论】:
-
链接错误表明,您在编译时没有包含一个或多个所需文件。你是怎么编译的?
-
只使用提供的 Makefile
-
它来自
标签: c makefile compiler-errors