- 论坛徽章:
- 2
|
311 g_thread_create((GThreadFunc)make_data_connection,NULL,FALSE,NULL);
运行程序后
显示 undefined symbol: g_thread_create
MakeFile 如下:不知道为为什么啊,谁能帮一下忙,感激不尽!!!
2 all (PROGS)
3 CC = gcc
4 OBJS=main.o ftpclient_UI.o fileutils.o transfer.o
5
6 CFLAGS=-g -I.\
7 `pkg-config --cflags gtk+-2.0 gthread-2.0`
8
9 LIBS=-L. `pkg-config --libs gtk+-2.0 gthread-2.0`\
10
11 .c.o:
12 $(CC) $(CFLAGS) -c $<
13
14 zhuftpclient (OBJS)
15 $(CC) -o $@ $(OBJS) $(LIBS)
16
17 main.o:ftpclient_UI.h
18 ftpclient_UI.o:ftpclient_UI.h
19 fileutils.o:fileutils.h
20 transfer.o:transfer.h
21
22 clean:
23 rm -rf *.o $(PROGS)
|
|