-4
"정점은 SF의 멤버가 아닙니다",하지만 난오류 : 나는 SFML을 사용하고, 나는 정점 배열 함께 작동하도록 노력했습니다
sf::Vertex vertex;
처럼 작성할 때마다
그것은 나에게
'정점'을 말하는 오류를 제공, 컴파일하는 것은
#include<iostream>
#include<SFML/Graphics.hpp>
#include<Vertex.hpp>
int main(){
sf::RenderWindow window(sf::VideoMode(200,200), "SFML WORKS");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
sf::Vertex vertex;
return 0;
}
SF의 구성원이 아닌
"SFMLtest.cpp:3:9: fatal error: Vertex.hpp: No such file or directory
#include<Vertex.hpp>"
코드를 표시하십시오. 어떻게 거기에 도착했는지 알지 못하면 오류에 대해 알려주는 것은 유용하지 않습니다. 쓸모없는 추측으로 연결됩니다. 그러나 그 메모에, 당신이 단순히 오른쪽 헤더를 포함했는지 확인하십시오. –
[요구 사항은 #include'] (https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Vertex.php)입니다. . 그 코드에 코드가 있습니까? –
요청 방법에 대한 도움말 센터를 참조하십시오. 필수 정보는 주석에 버려서는 안됩니다. 덧글은 추가 토론을위한 것입니다. 독자가 평가할 필요가있는 모든 정보를 포함하도록 게시물을 [편집]하십시오. –