jetbrains-academy / CppBasics

Learn fundamentals of C/C++ while developing simple arcade game
MIT License
3 stars 1 forks source link

Build failed. I added game.hpp include in main.cpp to fix the build. Warm Up/Moving On/Start the Game #26

Open edutools-service opened 7 months ago

edutools-service commented 7 months ago

Build failed. I added game.hpp include in main.cpp to fix the build. C:\Users\IOT\CLionProjects\C++Basics\WarmUp\MovingOn\task\src\main.cpp: In function 'int main()': C:\Users\IOT\CLionProjects\C++Basics\WarmUp\MovingOn\task\src\main.cpp:40:14: error: 'initWindow' was not declared in this scope 40 | status = initWindow(window); | ^~~~~~ C:\Users\IOT\CLionProjects\C++Basics\WarmUp\MovingOn\task\src\main.cpp:47:14: error: 'initBackrground' was not declared in this scope; did you mean 'background'? 47 | status = initBackrground(background, backgroundTexture); | ^~~~~~~ | background C:\Users\IOT\CLionProjects\C++Basics\WarmUp\MovingOn\task\src\main.cpp:54:14: error: 'initPlayer' was not declared in this scope 54 | status = initPlayer(player, playerTexture); | ^~~~~~

DaniilBogdanovJB commented 7 months ago

Hello, Warm Up/Moving On/Start the Game doesn't require from user to add any code, only to install SFML libraries (on Windows they should be compiled with the bundled compiler automatically by the script).

The Moving On task also doesn't require to add any additional include.

Overall, a freshly downloaded course doesn't produce this error for me on Windows. Could you please clarify the steps for reproducing the problem?