Build fails
Suspicious-Goat opened this issue · 1 comments
After I hit F9, it creates the build folder, but it is empty. I read the error log, and it said:
C:\Users--\Desktop\stuff\cpp\main.cpp: In function 'int main()':
C:\Users--\Desktop\stuff\cpp\main.cpp:2:5: error: 'sf' has not been declared
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
^~
C:\Users--\Desktop\stuff\cpp\main.cpp:3:5: error: 'sf' has not been declared
sf::CircleShape shape(100.f);
^~
C:\Users--\Desktop\stuff\cpp\main.cpp:4:5: error: 'shape' was not declared in this scope
shape.setFillColor(sf::Color::Green);
^~~~~
C:\Users--\Desktop\stuff\cpp\main.cpp:4:24: error: 'sf' has not been declared
shape.setFillColor(sf::Color::Green);
^~
C:\Users--\Desktop\stuff\cpp\main.cpp:6:12: error: 'window' was not declared in this scope
while (window.isOpen())
^~~~~~
C:\Users--\Desktop\stuff\cpp\main.cpp:8:9: error: 'sf' has not been declared
sf::Event event;
^~
C:\Users--\Desktop\stuff\cpp\main.cpp:9:33: error: 'event' was not declared in this scope
while (window.pollEvent(event))
^~~~~
C:\Users--\Desktop\stuff\cpp\main.cpp:11:31: error: 'sf' has not been declared
if (event.type == sf::Event::Closed)
^~
Here are my settings.
You must include SFML specific classes, like #include <SFML/Graphics.hpp>
, or any class that your code needs.