cmake

    0熱度

    1回答

    我正在嘗試CLion編寫一些基本的C++程序,但每次使用std::cin或饋入某些輸入時,輸入將無緣無故地打印回控制檯。 例如,如果我運行這個程序 #include <iostream> #include <string> int main(){ string name; std::cin >> name; std::cout << name << std::e

    0熱度

    1回答

    我試圖編譯this git-repository遇到錯誤「與-fPIC編譯」:與 option(BUILD_PYTHON_BINDINGS "Whether or not a binary python module should be built" ON) This is the output of the compilation(分支功能pybind),但最有趣的部分是: [100%] L

    0熱度

    1回答

    我在一些項目中使用了llvm,並且我想將此命令行參數與llvm的路徑一起添加到我的cmake中,因此我不必保留每次運行cmake時都會使用它。 我還希望cmake在不涉及llvm的項目中使用時不會中斷。 感謝

    1熱度

    2回答

    我想從CMake變量中刪除特定的庫。 假設LIB包含變量「A; B; C」的值, 我知道使用set添加另一個變量「d」的comtent這樣 set(LIB ${LIB};D) 但是我試圖除去「 C「from LIB like following unset(LIB C) 此代碼無效。 有沒有人知道這樣做的好方法?

    0熱度

    1回答

    在設計我CMakeLists,我經常碰到這樣那樣的錯誤: Cannot find source file: foo.hpp Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx 要調試放入系統的問題,我真的想知道哪裏的CMake找這個文件! 我可以找到一些關

    0熱度

    1回答

    我的代碼取決於<X11/Xlocale.h>。當我嘗試使用emscripten工具鏈(在CMake生成後)編譯時,出現以下錯誤。我需要在配置中更改哪些內容? 'X11/Xlocale.h' file not found # include <X11/Xlocale.h> ^~~~~~~~~~~~~~~ 1 error generated. 我在Linux上這樣做。 $ una

    1熱度

    1回答

    我有克利翁內的以下項目結構: ├── CMakeLists.txt ├── src │   ├── func1.c │   ├── func1.h │   └── main.c └── test └── unit └── test_func1.c 其中的CMakeLists.txt: cmake_minimum_required(VERSION 3.5)

    0熱度

    1回答

    我想編譯BCI2000的Emotiv EPOC模塊。在該模塊中,CMakeLists文件包含以下內容(在下面的錯誤日誌下面)。 編譯器提供了以下錯誤, -- Selecting Windows SDK version to target Windows 10.0.10586. CMake Error at CMakeLists.txt:21 (BCI2000_INCLUDE): Unknown

    0熱度

    1回答

    我有一個CMake的(大多數是C,有一些C++)項目,其安裝說明如下: mkdir build cd build cmake /*some options*/ ../ make 這工作完全,如果我在命令行編譯。 我想使用IDE來編譯這個程序,以便我可以使用圖形調試器進行調試。但是,當我嘗試使用IDE進行編譯時,出現鏈接器錯誤。 我不熟悉CMake的內部運作,所以我不確定如何達到預期的行爲

    0熱度

    1回答

    我是新來的c + +開發。 我想嘗試使用MySQL數據庫,但不明白它有什麼問題。這是我的代碼。 #include <iostream> #include <mysql.h> MYSQL *connection, mysql; MYSQL_RES *result; MYSQL_ROW row; int query_state; int m