![](/img/trans.png)
[英]locale::facet::_S_create_c_locale name not valid for empty local name
我正在寫一個 function 用於將u8string打印到ostream 。 這就是我想出的:auto operator<<(std::ostream& out, const std::u8string_view str) -> std::ostream& { ...
[英]locale::facet::_S_create_c_locale name not valid for empty local name
我正在寫一個 function 用於將u8string打印到ostream 。 這就是我想出的:auto operator<<(std::ostream& out, const std::u8string_view str) -> std::ostream& { ...
[英]Building gRPC and openssl as dependency with cmake for msys2/mingw64 fails with undefined references
我正在嘗試使用更改的文件樹結構和我自己的帶有 msys2/mingw64 的 CMakeLists.txt 構建 grpc helloworld 示例。 我想使用 add_subdirectory 從源構建 grpc 作為 static 庫,並從源遞歸地構建 grpc 的依賴項。 這樣做我得到了未定 ...
[英]C++ Why is MSYS2 MINGW UCRT x64 gdb command not found
因此,我嘗試檢查 Mingw-w64 工具是否已正確安裝,gcc、g++ 是否已正確安裝,但 gdb 是否已正確安裝。 我打算在 windows 10 中使用 Visual studio 代碼。在https://code.visualstudio.com/docs/cpp/config-mingw# ...
[英]Why is only the reference to endwin() not defined, when compiling this example code for PDCurses?
在為 PDCurses 編譯示例 hello-world.c 時,linker 似乎無法找到 endwin() function。 注釋掉包含endwin()的行,代碼編譯正常並且程序運行。 這是示例代碼,取自此處(來自 source/pdce0.c):#include <curses.h& ...
[英]Running a gtk2 program outside the msys2 shell
如果我提請您注意有關不再支持的舊 GTK2 的問題,請原諒。 我需要在 windows 上編譯一個用 C/GTK2 編寫的程序。 Glade-2 和 DEVc++ 是一個很好的解決方案,但 pango 庫已經過時並且缺少許多功能。 我使用 MSYS2 成功編譯,但是在 shell 之外運行的程序 ...
[英]gcc /g++ produces windows executables that only create output on msys2 bash, not on other terminals
我有三台機器在 Windows 10 上運行 VSCode,並為 C++ 設置了 msys2 / mingw64 /gcc。 還安裝了 Microsoft Compiler cl.exe 和 Visual Studio 構建工具。 他們通過 Github 共享彼此的代碼。 在一台機器上,我在 Win ...
[英]Hiding strings from strings tool in c language
目標是聲明 char arrays 在使用像strings這樣的工具時不顯示方法 方法 2 在 linux 上工作正常,但在 windows 上這是無用的代碼,我得到visibility attribute not supported in this configuration; ignored [ ...
[英]VCPKG package installation fails on wrong path with semicolon
我是 MSYS2、VCPKG 和 CMAKE 的新手。我想通過 MSYS2/UCRT64 和 VCPKG 在 Windows 上構建 package MSDFGEN。到目前為止我做了什么: 安裝 Visual Studio Community Edition + 安裝 MSYS2 + 啟動 UCRT ...
[英]How do I permanently change the MSYS2 PATH?
我想將/mingw64/bin永久添加到 MSYS2 PATH。 我試過了: export PATH=$PATH:/mingw64/bin 它一直有效,直到我退出。 在我重新啟動 MSYS2 之后,路徑已重置為之前的狀態。 我需要做什么才能將/mingw64/bin添加到 PATH,以便在我退出並 ...
[英]msys64/ucrt64/include/vips/vips8:35:10: fatal error: glib-object.h: No such file or directory #include <glib-object.h>
我正在嘗試使用 mingw32-make 進行編譯,但顯示以下錯誤: makefile 是: 而且文件太大所以我會顯示錯誤在哪里(第 7 行包括 <vips/vips8>: 我感謝您的幫助。 現在我正在使用 Msys UCRT64 開發 windows 11,我最后嘗試的是使用pac ...
[英]Install matplotlib for Python with MSYS MinGW 64
我想使用 MSYS MinGW x64 為 Python 安裝 matplotlib。 命令 以前失敗過。 然后我做了一些更改,現在我想再次嘗試上面的命令,但我只收到這些錯誤消息: 我的問題:如何刪除緩存文件,以便再次收到有意義的錯誤消息。 或者還有另一種方法可以使用 MSYS MinGW x64 ...
[英]MSYS2 MinGW x64 shell in Visual Studio Code opens up in new window
我想將 MSYS2 MinGW x64 shell 集成為 Visual Studio Code 中的終端。 我在這里遵循了這些說明。 我現在可以從 Visual Studio 中啟動 MSYS2 MinGW x64 shell,但它會彈出一個新的 window。但我想將它放在編輯器窗格下。 這是我 ...
[英]Can't run OpenCV-App because of runtime error missing Qt5OpenGL.dll and Qt5Test.dll
我想使用 cmake 構建的 OpenCV 庫構建一個應用程序。首先我下載了 opencv4.5.5 的源代碼。 我在該文件夾中創建了一個子文件夾 mingwbuild,從那里我可以執行命令“cmake ../ -G”MinGW Makefiles“然后我運行命令”mingw32-make ins ...
[英]Failed to start debugger in Eclipse (Win10)
我正在嘗試從 Windows 10 下的 Eclipse 調試 Fortran 控制台應用程序。 使用來自 MSYS2 的編譯器,構建和運行工作正常。 但是,啟動調試器會產生: 最終啟動順序錯誤: 正確找到了 gdb.exe,但似乎二進制文件的路徑以/c/Windows/system32/為前綴,並 ...
[英]How do I use an external library with gcc?
我正在嘗試編譯這段代碼:#include <GLFW/glfw3.h> int main() { glfwInit(); glfwTerminate(); return 0; } 在 Windows 10 的 MSYS2 中使用此命令:gcc -Wall ...
[英]Functional differences between git for windows and git in WSL
據我了解,用於 Windows 的 git 附帶了一個本地 Windows 平台二進制文件,它可以從基於 msys2 的 bash 仿真進行連接,只是為了隱藏平台差異。 還可以在 WSL2 中使用 linux 二進制文件,它依賴於整個 WSL 兼容層。 通過 WSL 使用 git 和通過 git b ...
[英]Installing numpy with pip on windows machine
我一直在嘗試安裝 pip 有一段時間了。 我的 python 版本是python 3.9.11 ,我的 pip 版本是pip 22.3.1 。 我無法安裝numpy 、 opencv-python或任何其他與此相關的庫。 我唯一能夠做到的是imutils 。 當我嘗試安裝 wil pip 22.3 ...
[英]Symlink for README.md file
我正在嘗試在我的 GitHub 存儲庫中創建一些符號鏈接。 文件結構如下: 如何實施? 我嘗試使用以下命令在上面提到的所需位置創建符號鏈接,使用 Git Bash。但是,運氣不好。 我不知道我做錯了什么。 誰能幫我? ...
[英]CMake: Some include directories defined in source files, but undefined in headers for nested target
鑒於以下項目結構: 庫的CMakeLists.txt: app_using_library 的 CMakeLists.txt: class1.hpp: #include "fmt/core.h" // cannot open source file "fmt/core.h" class1.cp ...
[英]I set the rpath with gcc in MYSYS2 when compiling, but the program can't find it when running, so why?
在我的工作目錄中有main.c和一個名為lib的文件夾,里面有libtest.dll 。 我用 $ gcc main.c -ltest -L./lib -Wl,-rpath=./lib 編譯,編譯過程沒有問題(沒有warning和error)。 但是當我運行a.exe時系統提醒 D:/MYSY2/ ...