You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
| ^~~~~~~~~~
The text was updated successfully, but these errors were encountered:
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?
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);
| ^~~~~~~~~~
The text was updated successfully, but these errors were encountered: