在看 CGAL 時發現的,他的 library 都是這樣一個 all_file.cpp 裡面就這樣寫。
當然在修修改改的時期這樣會變慢,不過可以減少連結時間的感覺。

#include "CGALCore/BigFloat.cpp"
#include "CGALCore/CoreAux.cpp"
#include "CGALCore/CoreDefs.cpp"
#include "CGALCore/CoreIO.cpp"
#include "CGALCore/Expr.cpp"
#include "CGALCore/extLong.cpp"
#include "CGALCore/GmpIO.cpp"
#include "CGALCore/Real.cpp"

而且只會有一個 .obj 感覺編譯還普通,連結超快的。

arrow
arrow
    全站熱搜

    讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()