SFML community forums

Help => General => Topic started by: wrexlurker on April 22, 2015, 11:52:22 pm

Title: _imp___ error
Post by: wrexlurker on April 22, 2015, 11:52:22 pm
Hello, I'm new

I've spend the whole yesterday getting an open source project to compile. After learning how to use cmake to create and format the source code for this project, I've encounter these error

(click to show/hide)

Edited:

After I started to work on my own project, I concluded a possibility that this issue is related specifically to sfml version 2.2. Because when I run my sample code on sfml version 2.2, the __imp error did occurs and when my own sample code is run on version 2.1, the code compiled successfully. I still need to resolve this problem because the open source project I downloaded needs to be run on 2.2, also I want to try the latest version of sfml.

Title: Re: _imp___ error
Post by: eXpl0it3r on April 23, 2015, 02:04:50 am
You're either not linking or linking SFML in the wrong order. Provide the full build command.
Title: Re: _imp___ error
Post by: wrexlurker on April 23, 2015, 09:58:30 am
Well, according to the global complier setting (not the build option)

The link libraries are
sfml-graphics
sfml-window
sfml-system

The search directory for my complier are my sfml/include, while my linker is sfml/lib.

I posted a pic before, but the site that upload didn't work  :(
Title: AW: _imp___ error
Post by: eXpl0it3r on April 23, 2015, 10:10:50 am
Can you post the verbose build command? http://www.sfml-dev.org/faq.php#tr-grl-verbose-ide
Title: Re: _imp___ error
Post by: wrexlurker on April 23, 2015, 10:42:03 pm
Here it is
(click to show/hide)
Title: Re: _imp___ error
Post by: zsbzsb on April 23, 2015, 11:31:51 pm
Sorry to say, but no where in that output do you link against SFML. So check your settings again and make sure you are correctly following the tutorial.