SFML static linking
Posted: Sun Dec 29, 2013 5:27 am
So I'm doing more testing with Code Lite and I need a little help. I would like to test static linking to the SFML library. I have it compiled correctly and tested it with Code Blocks and know the libraries can link correctly. I'm following the Code Blocks directions on the SFML site at http://www.sfml-dev.org/tutorials/2.1/start-cb.php to come up with how to set Code Lite to compile statically. Checking the forums here I didn't see a topic for SFML specifically, but there were a couple for Linux(which I have tested dynamically with Code Lite, but will be testing as static as well). So far what I have come up with to try is to go to Settings-->Common Settings-->Linker and set options for 1);-SFML_STATIC 2);SFML_STATIC and 3);-static. Options 1 and 2 fail outright. Option 3 gives me a laundry list of error codes.
So what I'm asking is what would be the proper way to set Code Lite to statically link with SFML libraries and for future reference any static library. I'm currently working on Windows 7, but will be expanding to Linux soon. So this question pertains to the Windows environment.
So what I'm asking is what would be the proper way to set Code Lite to statically link with SFML libraries and for future reference any static library. I'm currently working on Windows 7, but will be expanding to Linux soon. So this question pertains to the Windows environment.