Joi
Joi

Reputation: 1

SFML loadFromFile undefined reference(test works, but crash when add an image)

Before I opened this thread I did a search to prevent duplicate questions, and I found some similar issues, but they are a little old.

I configured the SFML as the official guide suggest(Code Blocks), and I even compiled the test code and actually works, but when I tried to use a texture or image it didn't work. I´ll be very grateful if someone can help me with this.

current SFML version and compiler TDM 4.9.2 and SFML 2.4.0

Image with the error on link

toolchain executables config

Project config general

config Debug and release

Test project without add images(working)

Upvotes: 0

Views: 259

Answers (1)

user9697628
user9697628

Reputation: 11

You shouldn't use -s in Release Linker

sfml-graphics
sfml-audio
sfml-network
sfml-window
sfml-system

I think it can help you

Upvotes: 1

Related Questions