Salut,
il y a une heure mon codeblocks compiler bien j'ai fermer codeblocks pour faire autre chose puis aprés j'ai voulut re dev et la il codeblocks ne veut plus me compiler mon programme
||=== Build: Debug in SFML-Learning (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `main':|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|6|undefined reference to `sf::RenderWindow::RenderWindow()'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|7|undefined reference to `sf::String::String(char const*, std::locale const&)'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|7|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|7|undefined reference to `sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|9|undefined reference to `sf::seconds(float)'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|11|undefined reference to `sf::Time::asSeconds() const'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|18|undefined reference to `sf::Window::close()'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|16|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|20|undefined reference to `sf::Window::display()'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|13|undefined reference to `sf::Window::isOpen() const'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|21|undefined reference to `sf::RenderWindow::~RenderWindow()'|
D:\Devellopement\Projet C++\SFML-Learning\main.cpp|21|undefined reference to `sf::RenderWindow::~RenderWindow()'|
||=== Build failed: 12 error(s), 0 warning(s) (0 minute(s), 4 second(s)) ===|
main.cpp
#include <SFML/Graphics.hpp>
#include <iostream>
int main(){
sf::RenderWindow window;
window.create(sf::VideoMode(800,600), "kshkq", sf::Style::Titlebar | sf::Style::Close);
sf::Time time = sf::seconds(2);
std::cout << time.asSeconds() << std::endl;
while(window.isOpen()){
sf::Event event;
while(window.pollEvent(event)){
if (event.type == sf::Event::Closed)
window.close();
}
window.display();
}
}