Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@edutools-service
Copy link

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);
| ^~~~~~~~~~

@edutools-service edutools-service added the bug Something isn't working label Feb 18, 2024
@DaniilBogdanovJB
Copy link

DaniilBogdanovJB commented Feb 20, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants