【未解决】cygwin-make-undefined-ref-to-assert

CPP,H,Makefile文件地址:http://pan.baidu.com/s/1pJ4uas7

make的时候出现如下问题(http://sourceforge.net/p/sexpr/bugs/22/

但是在windows下直接用mingw32-make没有问题(需要略微修改Makefile)

mingw32-make的Makefile

# ZTHREAD_A the static link library file of ZThread
ZTHREAD_A = F:/libs/ZThread-2.3.2/bin/zthread_win32.a
# ZTHREAD_H is the directory that has all the header
# files of the ZThread library
ZTHREAD_H = F:/libs/ZThread-2.3.2/include

test.exe: main.o Test.o LiftOff.o
    g++ -o test.exe main.o Test.o LiftOff.o -s $(ZTHREAD_A)
main.o: main.cpp
    g++ -c main.cpp -o main.o
# '-I' specifies the header search directory
Test.o: Test.cpp Test.h
    g++ -I $(ZTHREAD_H) -c Test.cpp -o Test.o
LiftOff.o: LiftOff.cpp LiftOff.h
    g++ -I $(ZTHREAD_H) -c LiftOff.cpp -o LiftOff.o

# PHONY means 'clean' is a fake target
# use 'make clean' to remove all .o files
# before rebuilding
# '-' means continue execute next command even if something goes wrong with this command
.PHONY: clean
clean:
    -del test.exe
    -del *.o

 

posted @ 2014-12-03 09:35  rldts  阅读(301)  评论(0编辑  收藏  举报