SFML loadFromFile undefined reference
问题 I'm learning to use SFML with the idea of making a small game, so far I've created a window and messed about with it's settings, and set up a draw loop and event handler. The trouble started once I tried to add my first texture using the following code: #include "SpaceNomad.ih" void MainMenu(GameEngine &Engine) { sf::Texture texture; if(!texture.loadFromFile("MenuBackGround.png")) { cout << "couldn't load background texture\n"; } sf::Sprite *sprite = new sf::Sprite; sprite->setTexture(texture