Issues while compiling with windows
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- cmake, cpp
調査の方向性
Start by reproducing the Windows CMake build for src/Command/Commands/Game_info/Create_game/Create_game.cpp and inspect how raylib.h is included alongside the Windows SDK headers. Compare the Linux and Windows build configuration and include setup. Done means the project compiles on Windows without the reported raylib.h and Windows header conflicts.
索引モデルが issue の本文から書いたものです。
説明
Hello I have a project where i need to compile the raylib-cpp with cmake under linux and windows, no error on linux but windows it's different. I use Cmake to compile the project.
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
249,3): error C2365: 'Rectangle': redefinition; previous definition was 'function' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-M
LH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\wingdi.h(4561,24):
see declaration of 'Rectangle'
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
287,15): error C3646: 'source': unknown override specifier [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet
\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
310,15): error C2143: syntax error: missing ';' before '*' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet
\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
310,20): error C2238: unexpected token(s) preceding ';' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\bu
ild\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
955,12): error C2733: 'CloseWindow': you cannot overload a function with 'extern "C"' linkage [C:\Users\Hugo\Documents\GitHub\
B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winuser.h(4710,1):
see declaration of 'CloseWindow'
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1004,12): error C2733: 'ShowCursor': you cannot overload a function with 'extern "C"' linkage [C:\Users\Hugo\Documents\GitHub\
B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winuser.h(9328,1):
see declaration of 'ShowCursor'
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1218,48): error C2061: syntax error: identifier 'Rectangle' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.barde
t\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1241,12): error C2182: 'DrawRectangleRec': this use of 'void' is not valid [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-r
type-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1241,12): error C2491: 'DrawRectangleRec': definition of dllimport data not allowed [C:\Users\Hugo\Documents\GitHub\B-CPP-500-
MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1241,39): error C2146: syntax error: missing ')' before identifier 'rec' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rty
pe-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1242,12): error C2182: 'DrawRectanglePro': this use of 'void' is not valid [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-r
type-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1242,12): error C2491: 'DrawRectanglePro': definition of dllimport data not allowed [C:\Users\Hugo\Documents\GitHub\B-CPP-500-
MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1242,39): error C2146: syntax error: missing ')' before identifier 'rec' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rty
pe-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1245,12): error C2182: 'DrawRectangleGradientEx': this use of 'void' is not valid [C:\Users\Hugo\Documents\GitHub\B-CPP-500-ML
H-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1245,12): error C2491: 'DrawRectangleGradientEx': definition of dllimport data not allowed [C:\Users\Hugo\Documents\GitHub\B-C
PP-500-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1245,46): error C2146: syntax error: missing ')' before identifier 'rec' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rty
pe-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1247,12): error C2182: 'DrawRectangleLinesEx': this use of 'void' is not valid [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5
-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1247,12): error C2491: 'DrawRectangleLinesEx': definition of dllimport data not allowed [C:\Users\Hugo\Documents\GitHub\B-CPP-
500-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1247,43): error C2146: syntax error: missing ')' before identifier 'rec' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rty
pe-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1248,12): error C2182: 'DrawRectangleRounded': this use of 'void' is not valid [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5
-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1248,12): error C2491: 'DrawRectangleRounded': definition of dllimport data not allowed [C:\Users\Hugo\Documents\GitHub\B-CPP-
500-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1248,43): error C2146: syntax error: missing ')' before identifier 'rec' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rty
pe-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1249,12): error C2182: 'DrawRectangleRoundedLines': this use of 'void' is not valid [C:\Users\Hugo\Documents\GitHub\B-CPP-500-
MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1249,12): error C2491: 'DrawRectangleRoundedLines': definition of dllimport data not allowed [C:\Users\Hugo\Documents\GitHub\B
-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1249,48): error C2146: syntax error: missing ')' before identifier 'rec' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rty
pe-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1278,12): error C2491: 'CheckCollisionRecs': definition of dllimport data not allowed [C:\Users\Hugo\Documents\GitHub\B-CPP-50
0-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1278,41): error C2146: syntax error: missing ')' before identifier 'rec1' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rt
ype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1280,66): error C2061: syntax error: identifier 'Rectangle' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.barde
t\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1281,50): error C2061: syntax error: identifier 'Rectangle' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.barde
t\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1287,7): error C2365: 'Rectangle': redefinition; previous definition was 'function' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-
MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\wingdi.h(4561,24):
see declaration of 'Rectangle'
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1287,17): error C2146: syntax error: missing ';' before identifier 'GetCollisionRec' [C:\Users\Hugo\Documents\GitHub\B-CPP-500
-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1287,43): error C2146: syntax error: missing ')' before identifier 'rec1' [C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rt
ype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Users\Hugo\Documents\GitHub\B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\vcpkg_installed\x64-windows\include\raylib.h(
1295,13): error C2733: 'LoadImageA': you cannot overload a function with 'extern "C"' linkage [C:\Users\Hugo\Documents\GitHub\
B-CPP-500-MLH-5-1-rtype-hugo.bardet\build\windows\src\Command\r-type-cmd.vcxproj]
(compiling source file '../../../../src/Command/Commands/Game_info/Create_game/Create_game.cpp')
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winuser.h(10848,1):
see declaration of 'LoadImageA'
it's an extract from the error, I have many more.
If you need more things tell me and I will give you.
- 主要言語
- C++
- スター
- 965
- フォーク
- 120
- 平均マージ
- 1時間 48分
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RobLoach/raylib-cpp のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
RobLoach/raylib-cpp#425 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
RobLoach/raylib-cpp#427 ·
-
Code genオープン
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
RobLoach/raylib-cpp#415 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
RobLoach/raylib-cpp#370 · コメント 1 件 ·
-
SDF Font Supportオープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
RobLoach/raylib-cpp#366 · コメント 3 件 ·
RobLoach/raylib-cpp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
grumpycoders/pcsx-redux#2171 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
bytedance/trae-agent#524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
AcademySoftwareFoundation/openexr#2683 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/onnxruntime#32881 ·
メンテナーはふだん 1 日以内に返信