guys be careful about the parameter , notice that i capital is the same as L uncapitalized , so before smfl it should uncapitalized L (l) not capitalized i(I) other than that this tutorial works great
-lsfml-audio -lsfml-graphics -lsfml-system -lsfml-window This is correct one. I was confused why my code is not working then i realised that small "L" and capital " i " look same then i correct is to -l(This is small " L ")sfml-audio
*TO ANYONE who encountered ERROR 25(1 exit returned). Make sure that your sfml extracted file is located on your C drive. *the letters are SMALL letter "L" -lsfml-audio -lsfml-graphics -lsfml-system -lsfml-window *SAMPLE CODE #include int main() { sf::RenderWindow window(sf::VideoMode(200,200), "SFML Works!"); sf::CircleShape shape(100.f); shape.setFillColor(sf::Color::Green);
thats what im getting: C:\Users\laz2\Documents\proj\Untitled2.o Untitled2.cpp:(.text+0x11b): undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale' ................. and more about 30 lines like this
Hello! Thanks And there's a major problem,i did setup everything like you did there's no problem with that but,everytime i execute the project it goes with a white screen then closes by itself Do you have a solution?
Thanks bro, but I do something a bit different from this video, instead of project option, I use compiler option, and it still works. Thanks for the tutorial.
This happens when you make multiple projects. The previous project already has files with the same name ex.(sfml-window.dll). When you create another project, the files have the same name. it will add a 2 to the end. ex.(sfml-window-2.dll). Dev cpp doesn't recognize this, and so it will say you don't have the correct files. I don't know how to fix this.
about the last step in which you have to copy the files from bin...is it mandatory? cause I am not having any folder like that, the version of sfml I used is 2.6.1
I did everything, but when I run the code it doesn't make the window. It just compiles and finishes with no errors and does nothing. Edit- It works now
i did exactly the same thing in the video, but i got multiple errors, i have no idea why C:\Users\Cliente\Desktop\Projeto\main.o In function `main': line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale' line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf9VideoModeC1Ejjj' line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE' line 6 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf11CircleShapeC1Efy' line 7 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf5Color5GreenE' line 7 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf5Shape12setFillColorERKNS_5ColorE' [...] C:\Users\Cliente\Desktop\Projeto\main.o In function `sf::CircleShape::~CircleShape()': C:\Users\Cliente\Desktop\Projeto\collect2.exe [Error] ld returned 1 exit status 25 C:\Users\Cliente\Desktop\Projeto\Makefile.win recipe for target 'testeSFML.exe' failed
Hey, can you do a tutorial of how to export the projects made in Sfml? The thing is that when I execute the .exe that is made in the project, I get this error that says "the code execution cannot proceed because (some libraries) are not found".
@@paulo0651 Don't worry!! Are you clear it now? and also I am Absolute Beginner i mean, its my second account 😅. Leave it, It doesn't matter. Just tell me one thing, are you clear that problem or not?
-lsfml-audio
-lsfml-graphics
-lsfml-system
-lsfml-window
Пиздец, я два часа мучался, а надо было всего лишь не копипастить, а самому написать 'L', блять, нахуй.
@@mr.pelmeshka2142 :)
Obrigadão!
@@DanielOliveira00 Нема за що Ж)
it help a lot
guys be careful about the parameter , notice that i capital is the same as L uncapitalized , so before smfl it should uncapitalized L (l) not capitalized i(I)
other than that this tutorial works great
I searched everywhere for it and finally i found it Thanx so much its very useful
You can say thanks by subscribing the channel.😅😊
@@Developer_exc 👍
-lsfml-audio
-lsfml-graphics
-lsfml-system
-lsfml-window
This is correct one. I was confused why my code is not working then i realised that small "L" and capital " i " look same then i correct is to -l(This is small " L ")sfml-audio
thanks
Yo bro you are the best I have been struggling with this two days to now but you saved me man thank you very much
*TO ANYONE who encountered ERROR 25(1 exit returned). Make sure that your sfml extracted file is located on your C drive.
*the letters are SMALL letter "L"
-lsfml-audio
-lsfml-graphics
-lsfml-system
-lsfml-window
*SAMPLE CODE
#include
int main()
{
sf::RenderWindow window(sf::VideoMode(200,200), "SFML Works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while(window.isOpen()){
sf::Event event;
while(window.pollEvent(event)){
if(event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
>Doesn't talks
>Explains in the most simple and undertandable way
>Give the links on the description
>Leaves
The peak tutorial
Thank you so much.. 😅😋
Supongo que es mejor que los otros videos que hablan de más xD
thank you sm!! i was so irritated by smfl compilation on ubuntu, this tutorial was so easy to follow and helps me so much
thats what im getting:
C:\Users\laz2\Documents\proj\Untitled2.o Untitled2.cpp:(.text+0x11b): undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale'
.................
and more about 30 lines like this
helloo, did your resolve this error? i have the same problem :(
KURWA MAĆ, The best video in the world!
Hello! Thanks
And there's a major problem,i did setup everything like you did there's no problem with that but,everytime i execute the project it goes with a white screen then closes by itself
Do you have a solution?
It's nice working, my problem solved thanks Sir.
Thank you...worked on the first attempt!
IDE GAS BRALE
Translate: GOES GAS MY BRO
You probably have missed some steps.
@@Developer_exc Indeed i have not
ide plin
tks my man
Thanks bro, but I do something a bit different from this video, instead of project option, I use compiler option, and it still works. Thanks for the tutorial.
how do i link them statically?
whenever I try to compile it it says
C:\Users\User\Documents\c++\main.cpp [Error] SFML/Graphics.hpp: No such file or directory
well i am not sure but this means that the "SFML/Graphics.hpp" should be in the same folder your cpp file is in .. again i am not sure :)
This happens when you make multiple projects. The previous project already has files with the same name ex.(sfml-window.dll). When you create another project, the files have the same name. it will add a 2 to the end. ex.(sfml-window-2.dll). Dev cpp doesn't recognize this, and so it will say you don't have the correct files. I don't know how to fix this.
about the last step in which you have to copy the files from bin...is it mandatory? cause I am not having any folder like that, the version of sfml I used is 2.6.1
kindly reply asap, I have a project to submit😭
I was try, but makefile.win error. The poin was error in :
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
, what is the solutions?
yeah same please reply??
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
Bro I am facing the same error ... Can you resolve this or not ?
Hi, copying the bin directory with dlls (not just dll files) to your program location should work
same ,____,
@@huberdchannel3403 no it didnt work
I did everything, but when I run the code it doesn't make the window. It just compiles and finishes with no errors and does nothing.
Edit-
It works now
it worked very well, there is no way to give a path to the dlls?
Amazing...works perfectly...thanks.
Mera phr bh error arha h, SFML/Graphics.hpp:No such file or directory,ab kia krun ? 😢
can someone help me please for some reason i am getting an error
Thank you! Sir.
Still ... it's not working 😭, what should i do
Um monstro !!!!!!! funcionou direitinho
i did exactly the same thing in the video, but i got multiple errors, i have no idea why
C:\Users\Cliente\Desktop\Projeto\main.o In function `main':
line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale'
line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf9VideoModeC1Ejjj'
line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'
line 6 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf11CircleShapeC1Efy'
line 7 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf5Color5GreenE'
line 7 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf5Shape12setFillColorERKNS_5ColorE'
[...]
C:\Users\Cliente\Desktop\Projeto\main.o In function `sf::CircleShape::~CircleShape()':
C:\Users\Cliente\Desktop\Projeto\collect2.exe [Error] ld returned 1 exit status
25 C:\Users\Cliente\Desktop\Projeto\Makefile.win recipe for target 'testeSFML.exe' failed
Hi I'm using Windows 8.1, where should I put the file instead of "local disc"
Anywhere ... It will work unless you specify it's location in IDE
@@Developer_excOk,Thanks🙏🏻🙏🏿🙏🏻
thanks you so much ! THANKS
how can you open terminal during the program running ?
i see some other coders can do it but i cant do it on dev c
WHAT YOU HAVE WRITTEN -isfml- or lsfmi
lsfml
This will never work for me
thanks, it worked!
Mn eu tentei fazer isso no dev c ++ mais recente e nao pego vc pode me ajudar ?
Can ı take example code?
How on earth did you do that we never work out with us how did you do it
I can't do my Dev said error in line 1: #include
#include text is case sensitive
i have an error at the Makefile.win at line 25.. and so it doesnt run, any suggestions?
same problem here :(
an error occurred opening Makefile.win .....and it says cannot find -lsfml-windows
It is working now....I wrote -lsfml-windows instead of -lsfml-window
my sfml window just pops up and disappears can anyone help?
You might be using wrong ver. ...
you might not be using infinite while loop
спасибо!
gracias por el video :)
thank you
ok bro I have done this thax i fixed that
It don`t work
Any reason why you said to use this specific version of SFML?
Because Dev c++(latest ver.) uses the same version of compiler suite.
@@Developer_exc ah, okay. Thank you so much for this tutorial, I definitely wouldn't have figured this out on my own
Thanks bro
thank bro
Hey, can you do a tutorial of how to export the projects made in Sfml? The thing is that when I execute the .exe that is made in the project, I get this error that says "the code execution cannot proceed because (some libraries) are not found".
yes i get this problem but i clear it 😄
@@absolutebeginner6365 at least before I could use SFML. I don’t know what happened, but now I just can’t, and it’s frustrating
@@paulo0651 Don't worry!! Are you clear it now? and also I am Absolute Beginner i mean, its my second account 😅. Leave it, It doesn't matter.
Just tell me one thing, are you clear that problem or not?
@@mirthun1012 No, and don't worry. It's a long story. Basically now I just can't use it due to some errors. But thanks for wanting to help anyways. 👍
@@paulo0651 what problem you get?
I mean, what error it outs?
Спасибо
Thanks
can you plz share the trial code
www.sfml-dev.org/tutorials/2.5/start-vc.php
1 29 C:\Users\Acer\Desktop\programation\main.cpp [Error] SFML/Graphics.hpp: No such file or directory
If you already haven’t, make sure that you have set the include folder to the folder which contains the folder SFML.
whats the code that u used at the end i want to verify if mine works too
#include int main() { sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!"); sf::CircleShape shape(100.f); shape.setFillColor(sf::Color::Green); while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); } window.clear(); window.draw(shape); window.display(); } return 0; }
@@Developer_exc Thanks! Actually it works :D thank you
I am a gamer