1
General / Re: Installing SFML for VS Code
« on: January 24, 2020, 09:54:44 am »
You aren't linking to the SFML libraries in that command. You need to use -L{SFML LIBRARY PATH} and -lsfml-graphics-d.lib -lsfml-network-d.lib etc, etc so it loads those libs into it.
You'll also need to copy the dll's from the sfml bin folder to the output of your compiled code (i.e. where the exe is), or statically link to those libraries using the -s command and setting the SFML_STATIC preprocessor command.
- On a note, I would probably look at some tutorials around compilers and how to use them, etc, this will help you in getting comfortable and understanding how to setup libraries. Alternatively, as I said in my previous post, use an IDE like Visual Studio/Code::Blocks as this will do a lot of the leg work for you, especially if you are inexperienced with such things.
You'll also need to copy the dll's from the sfml bin folder to the output of your compiled code (i.e. where the exe is), or statically link to those libraries using the -s command and setting the SFML_STATIC preprocessor command.
- On a note, I would probably look at some tutorials around compilers and how to use them, etc, this will help you in getting comfortable and understanding how to setup libraries. Alternatively, as I said in my previous post, use an IDE like Visual Studio/Code::Blocks as this will do a lot of the leg work for you, especially if you are inexperienced with such things.