I'm trying to call g++.exe from MinGW to compile a SFML project, but I'm having problems with the linker. I'm not using an IDE, just Notepad++ and and .exe (so I can use my flash drive for programming)... I can compile a normal .cpp project, and it turns into a perfect running application, so I know that part works. I'll show you how I'm doing this:
"*.a" ???
Library file?
(I doubt, so ignore it)
Does your workspace support library files? If so, just add it into the library list. If not, then I don't know, because I'm using VS2005, sorry
This looks like you're feeding it the name libsfml-system. Unless you've changed the names of the libraries it should be sfml-system for the release version or sfml-system-d for the debug version.
However, libsfml-system.a is in the lib\ folder of MinGW, where I was told to put it.
Um... Nope. They all have libsfml- in front of them, I didn't rename them either. I was told to put them there at the SFML website. Right at the top under "Copy the SFML development files to your Code::Blocks installation directory": http://www.sfml-dev.org/tutorials/1.6/start-cb.php. Am I being completely retarded and linking to the *.a's and I'm suppose to be linking to the *.dll's? Aaaaaaaaaaaaaaaaaaaaand, yes. I just tried that out... I'm glad to know I coded the compiler correctly though! I did however had to add a -l in front of sfml-system.dll. Thank you for helping.