"垃圾漩涡"大如两个美国 横跨太平洋 危害健康# Environmental - 环境科学与工程
r*l
1 楼
我不是做c/c++的。但是工作需要build code。Make说找不到libstdc++.so.5。
哪位帮忙看一下,谢谢。
Makefile:
*******************************************
DIR=.
CXX=g++
CXXFLAGS=-g -O -Wall
LDLIBS=-L$(DIR) -Wl,-rpath,$(DIR)
all: oldsample newsample
oldsample: oldsample.cpp libaddr.h
$(CXX) $(CXXFLAGS) oldsample.cpp -o [email protected] $(LDLIBS) -laddr -lpthread
newsample: newsample.cpp mdAddr.h mdEnums.h
$(CXX) $(CXXFLAGS) newsample.cpp -o [email protected] $(LDLIBS) -lmdAddr -lpthread
clean:
$(RM) ???sample
******************
哪位帮忙看一下,谢谢。
Makefile:
*******************************************
DIR=.
CXX=g++
CXXFLAGS=-g -O -Wall
LDLIBS=-L$(DIR) -Wl,-rpath,$(DIR)
all: oldsample newsample
oldsample: oldsample.cpp libaddr.h
$(CXX) $(CXXFLAGS) oldsample.cpp -o [email protected] $(LDLIBS) -laddr -lpthread
newsample: newsample.cpp mdAddr.h mdEnums.h
$(CXX) $(CXXFLAGS) newsample.cpp -o [email protected] $(LDLIBS) -lmdAddr -lpthread
clean:
$(RM) ???sample
******************