Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » link libraries missing on link command ( no -l ) (can't get libraries to be linked. No -l option on command line)
Re: link libraries missing on link command ( no -l ) [message #59527 is a reply to message #59441] Tue, 17 January 2023 11:30 Go to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 221
Registered: June 2011
Experienced Member
polydev wrote on Tue, 27 December 2022 13:59
I am trying to build a simple SFML example.
I have added sfml-window-s, sfml-main, sfml-graphics-s under project/Package Organizer ( tried with and without a when option )


Did you add them as "Libraries" or as "Static Libraries"? Also keep in mind that linker order is relevant so make sure you're linking your libs in the correct order or symbols may not be found.

sfml-audio, sfml-graphics, sfml-window, sfml-system.

SFML documentation also says you must define SFML_STATIC if you're using the static version.

Those __declspec(dllimport) sections suggest you may not have that defined but I'm not sure. You'll have to look at your SFML documentation.
 
Read Message
Read Message
Previous Topic: Assertion failed
Next Topic: how to update IDE?
Goto Forum:
  


Current Time: Sun May 12 09:07:43 CEST 2024

Total time taken to generate the page: 0.02094 seconds