g++ -c *.cpp g++ graph.o maxflow.o test.o -o test // 链接顺序必须写对 转载于:https://www.cnblogs.com/TianyuSu/p/10873580.html