SFML Setup in Visual Studio Code | Create C/C++ Applications using SFML + VSCode + MinGW-w64

  Рет қаралды 77,791

BoostMyTool

BoostMyTool

Күн бұрын

Пікірлер: 183
@umudoy3243
@umudoy3243 23 күн бұрын
Damn i tried all the tutorials i found on yt on how to run sfml and yhis is the only one that worked. I deleted my vscode and mingw first and followed the vscode setup this video told me to watch then this. Thank you so very much.
@cubeWorld555
@cubeWorld555 2 жыл бұрын
Thanks very much ! If you have an error with ld.exe ("skipping complete" for instance) you must reinstalled sfml because there is a problem to binaries (32 et 64 bit) Then if "undefined reference" (or something like that) you installed too a sfml isn't for you. Take the version with "GCC" Good luck !
@brendan7224
@brendan7224 2 жыл бұрын
Thank you so much! This was my problem. I had a 32 bit version of SFML working with a 64 bit version of MinGW.
@mamoumegge9568
@mamoumegge9568 2 жыл бұрын
thanks bro
@pallex3386
@pallex3386 Жыл бұрын
Thanks man!
@onebigsnowball
@onebigsnowball Жыл бұрын
I have this problem but i have the right version and gcc... Do you know any other reasons why this could be happening?
@kevinbroderick6594
@kevinbroderick6594 Жыл бұрын
Thank you very much. You cleared up a lot of detail especially for us that wanted to keep it light on our systems and to use Visual Studio Code. It all works so perfect! Cheers 👍
@אסף435
@אסף435 Жыл бұрын
Thank you, I have been watching for hours tutorials that didn't work and this one finaly worked
@ocean-donut
@ocean-donut Жыл бұрын
Omg this tutorial was the best! I had been trying for hours to get started with SFML to no avail. Thank you so much!
@atomsIndeed
@atomsIndeed Жыл бұрын
Did you have a Mac? I’m not sure if it works on Mac, I hope it does, I’m going to try later today
@319nsor3
@319nsor3 Жыл бұрын
@@atomsIndeed It works for me but when I give it the static libraries it doesn't work for me, I have macbook pro. let me know if it works for you. thank you so much
@atomsIndeed
@atomsIndeed Жыл бұрын
@@319nsor3 alright, I was just about to try, I’ll let you know how it goes
@ocean-donut
@ocean-donut Жыл бұрын
@@atomsIndeed Sorry I have windows :( I hope it works for you!
@atomsIndeed
@atomsIndeed Жыл бұрын
@@ocean-donut thanks! I’ve been trying to get it to work but I stopped, I’ll try again, thanks for the motivation!
@shogune_yt
@shogune_yt 5 ай бұрын
pls help main.cpp:1:10: fatal error: SFML/Graphics.hpp: No such file or directory 1 | #include
@bobbythetriangle5007
@bobbythetriangle5007 2 жыл бұрын
Thank you so much for this tutorial! I finally got SFML to work on my Mac now
@jizziee
@jizziee 2 жыл бұрын
i have problem in 5.30 when i type .\main the vsc respond nothing. and if i run manually it says "main.cpp:1:10: fatal error: SFML/Graphics.hpp: No such file or directory"
@danielo9902
@danielo9902 Жыл бұрын
same thing is happening to me. Have you found out how to solve it?
@phillipboll5322
@phillipboll5322 Жыл бұрын
@@danielo9902 any solutions to this yet?
@Samehh.
@Samehh. Жыл бұрын
You need to save teh files ! all of them Do ctrl S event de json proprety file and if doesn't work check your files
@zenderkingr3823
@zenderkingr3823 2 жыл бұрын
I don't know how to thank you!! This video is just perfect... Keep making great stuff.
@ChouibBalla
@ChouibBalla 18 күн бұрын
Bro this is the video i have been looking for in a week , thank you so mush i really appreciate your video
@patrykdziedzic4206
@patrykdziedzic4206 4 ай бұрын
I can't express how much you helped me, thank you!
@Courage_the_Cowordly_Dog
@Courage_the_Cowordly_Dog 3 ай бұрын
bro does it still works??
@patrykdziedzic4206
@patrykdziedzic4206 3 ай бұрын
@@Courage_the_Cowordly_Dog yes
@sushantguha407
@sushantguha407 2 жыл бұрын
Thank you so so much! You are a life saver. I couldn't get it working on CLion, Visual Studio or anything, but FINALLY VSCode worked! Thank you so much!
@ashikojima9850
@ashikojima9850 Жыл бұрын
make (e=2): The system cannot find the file specified. make: *** [Makefile:10: clean] Error 2 if you get this error when typing "make clean" change the "rm" to "del"
@ifracing
@ifracing Жыл бұрын
Thank you sir
@CPlusPlusLover53
@CPlusPlusLover53 Жыл бұрын
Hey I am doing this but it still doesn’t work ,any idea on what I should do ?
@1987aaronalam
@1987aaronalam Жыл бұрын
Legend! Thanks alot.
@cziffras9114
@cziffras9114 10 ай бұрын
You are my true hero, a sheer savior thank you so much!!
@lachlanchapman2572
@lachlanchapman2572 Жыл бұрын
typical tutorial comment, but why is everyones tuts so complicated compared to this?????
@jasperlevy8228
@jasperlevy8228 11 ай бұрын
Facts. Either I'm super smart or this tutorial was straight forward. First simple tutorial I've seen!
@MohammadShaikh-nx8wc
@MohammadShaikh-nx8wc 6 ай бұрын
No this tutorial was very straight and easy to understand
@adityasinghrawat6664
@adityasinghrawat6664 4 күн бұрын
As you may have seen old tutorial which were being done on the visual studio not visual studio code
@zyxburst
@zyxburst 2 жыл бұрын
Never knew about the includePath. Thank you so much!
@jdudeofficial4263
@jdudeofficial4263 Жыл бұрын
THANK You Finally I Don't Have To Use Visual Studio
@ClaudioMardones-h7y
@ClaudioMardones-h7y 5 ай бұрын
Excellent, very clear. Thankyou very much.
@vanshdeepbal1816
@vanshdeepbal1816 Жыл бұрын
bro thank you so much, I could not get this to work are so long thank you so much
@Riz00550
@Riz00550 9 ай бұрын
Thankss, helped me a lot with mac os 🙏
@brazo98
@brazo98 Жыл бұрын
Thank you Sir for this awesome tutorial. That is what I am looking for.
@CPlusPlusLover53
@CPlusPlusLover53 Жыл бұрын
Did the rm command thing work for your ?
@albinanana
@albinanana Жыл бұрын
it worked !! thank you a million holy shit
@aaratisapkotaupadhyaya9021
@aaratisapkotaupadhyaya9021 11 ай бұрын
yASSSS
@ninebysixteen222
@ninebysixteen222 Жыл бұрын
sir you are great, you are god, you are g.o.a.t ,thank you so much!!!! i can't describe my happiness in words right now, thank you so much!!
@319nsor3
@319nsor3 Жыл бұрын
Thank you for this video it's great but when I use the library static I get this error, 'ld: library not found for -lsfml-graphics-s' can you help me, I'm using macos.
@dekshunari3597
@dekshunari3597 Жыл бұрын
same
@ernestoroja6224
@ernestoroja6224 2 жыл бұрын
absolute legend, thank you so much
@Furmo
@Furmo 2 жыл бұрын
Thank You a lot! This one was super useful.
@bikeshshrestha666
@bikeshshrestha666 2 жыл бұрын
5:20 i didnt get exe file when i pressed enter
@rkc137
@rkc137 2 жыл бұрын
you fixed it?
@shreyosghosh6877
@shreyosghosh6877 2 жыл бұрын
Same Problem here...it's showing errors like "undefined reference to `__imp__ZN2sf11CircleShapeC1Efy'"
@rkc137
@rkc137 2 жыл бұрын
@@shreyosghosh6877 you need to replace your MinGW files with the ones in the red box on the sfml site
@nazibur175
@nazibur175 6 ай бұрын
Thanks a lot . It's helped me a lot.
@gandhithatha9
@gandhithatha9 Жыл бұрын
I have subbed to you Bro u r a life saver
@dani_bozzi
@dani_bozzi Жыл бұрын
make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + make clean + ~~~~ Anyone else getting this error?
@m96fa40
@m96fa40 11 ай бұрын
7 months later: First time facing this error I'm almost new to this but, I think it has to do with Make extension installation maybe you have to run a certain command to let the terminal recognize "make" command or something, idk did you get any solution to that recently?
@mohamedhany9385
@mohamedhany9385 Жыл бұрын
The exe file doesn't appear what should I do
@ellie-qj4qo
@ellie-qj4qo 2 жыл бұрын
THANK YOU SO MUCH FOR THIS ILY
@ATS3788
@ATS3788 Жыл бұрын
Thank you very much from Germany
@SpinnTV
@SpinnTV 2 жыл бұрын
Great work
@NoctisDarkhart
@NoctisDarkhart Жыл бұрын
The exe isn't appearing and i'm getting this undefined reference to WinMain instead
@Vitor-ph1oh
@Vitor-ph1oh Жыл бұрын
very goo9d video kisses from kazakistan
@shaneireland8460
@shaneireland8460 2 жыл бұрын
Thank you, great help
@jansustar4565
@jansustar4565 2 жыл бұрын
I have an error popping up, regardless of the method used to create a sfml project. Entry point not found _ZNKSt7::cxx1112basic_stringlcSt11char_traitslcESalcEE5rfindEcj could not be located in the dynamic link library C:\...\sfml-app.exe Installed VSCode (working fine with other projects, not sure about third party libraries since this is the first one) Installed minGW 8.1 64 bit (version I usually use) and minGW 32 bit 7.3.0 (compatible with SFML, downloaded from SFML 2.5.1 download page) Made sure that the compiler I use with VSCode is 7.3.0 (g++ --version) "g++.exe (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 7.3.0" Used the SFML tutorial example on: www.sfml-dev.org/tutorials/2.5/start-vc.php (green circle on black screen) (works fine until now) and finally: double click on sfml-app.exe And this is when the errors pop up. Additional info: I am using Windows 10 x64, VSCode, SFML for 32 bit. VSCode is working fine for me, compiled dozens of projects without issue. This is not the only time I tried using SFML, the previous time was about a year ago, but then I had the #include //no such file or directory exists. I am probably giving way too much details, but after 8 hours of my life spent on this, I want the solution as fast as possible. Thank you in advance.
@htidronelab17Md
@htidronelab17Md Жыл бұрын
hello thanks for you tuto. i have some problem : C:\Users\Administrator\projects\myProjects\main.cpp:1:10: fatal error: SFML/Graphics.hpp: No such file or directory 1 | #include | ^~~~~~~~~~~~~~~~~~~ please can you help me solve this ?
@saarthkishore7442
@saarthkishore7442 4 ай бұрын
bro i got the same issue, did you find a way to fix it by any chance
@FnKadabr
@FnKadabr Жыл бұрын
Thanks you very much!
@higgs_boson2231
@higgs_boson2231 Жыл бұрын
brilliant. Thanks!!
@spyrex3988
@spyrex3988 2 жыл бұрын
thanks bro nice stuff
@andre.t_puma9177
@andre.t_puma9177 Ай бұрын
And for windows is the same?
@nguyenloc180
@nguyenloc180 2 жыл бұрын
Idk why but "make clean" and "make" doesn't work with me
@sebmaier6995
@sebmaier6995 2 жыл бұрын
did u fix it?
@고등어-r5t
@고등어-r5t 7 ай бұрын
genious
@raidentatsunoko
@raidentatsunoko 2 жыл бұрын
amazing video thank you
@vinguyenkhanh199
@vinguyenkhanh199 Жыл бұрын
I got the prob : undefined reference to `WinMain' Does anyone know why? Im depressed
@rohankarmacharya3796
@rohankarmacharya3796 Жыл бұрын
Go to setting and search ‘save’ and again search for save files before run something like that put a tick mark
@socialleper8430
@socialleper8430 Жыл бұрын
I have same issue, Did you manage to solve it ?
@socialleper8430
@socialleper8430 Жыл бұрын
I solved it..Its because i tried to be clever and give my file a different name, I called it FirstExample.cpp , i modified the G++ command to so where main* was written i put FirstExample, seemed harmless, but got winmain error, so i thought it must want to to be called main and it worked
@SamJoex
@SamJoex Жыл бұрын
Thank you so much for this! I did have one weird snag: It wouldn't work with the rm -f command, but was fine with the del command. Not sure why
@CPlusPlusLover53
@CPlusPlusLover53 Жыл бұрын
hello was your error the not recognised name of a cmdlet ? , if it was coulkd you please help as i dont know how to fix i think i havent done the del command properly
@SamJoex
@SamJoex Жыл бұрын
@@CPlusPlusLover53 the del command has about the same syntax as the rm command, although i don't remember if i had to pass the -flags
@CPlusPlusLover53
@CPlusPlusLover53 Жыл бұрын
@@SamJoex I see , is it possible for you to check in any way ? If not then that’s fine
@CPlusPlusLover53
@CPlusPlusLover53 Жыл бұрын
hello again , when i do the rm command it only gets rid of the main.exe file not the main.o, is this fine or do i need to fix it ?
@SamJoex
@SamJoex Жыл бұрын
@@CPlusPlusLover53 not sure. it's been months since i touched SFML and i had a bit of a struggle myself in figuring this out, so my memory's kinda rusty on this. sorry
@ers5591
@ers5591 Жыл бұрын
When I run .\main nothing happens, I tried the exe file and nothing happened either
@zaimweb9496
@zaimweb9496 Жыл бұрын
Check compiler path
@aesthetictopus675
@aesthetictopus675 Жыл бұрын
did you copied the dll files from SFML bin to your project folder ?
@lidkaluczkiewicz420
@lidkaluczkiewicz420 9 ай бұрын
I love you so much
@Looki2000
@Looki2000 Жыл бұрын
I'm getting error "This UNIX operating system is not supported by SFML library". I'm using Windows 10
@Umehanictds
@Umehanictds 8 күн бұрын
it doesnot work when i paste path of include
@RicardoFermín-e3l
@RicardoFermín-e3l 3 ай бұрын
love u
@AgentRex42
@AgentRex42 2 жыл бұрын
6:20 when I write .\main nothing happens
@1xXRaNDoXx1
@1xXRaNDoXx1 2 жыл бұрын
same problem, any solve? As when I try to open exe from folder it gives more lib errors
@asmajavaid3680
@asmajavaid3680 8 ай бұрын
Which button did you press to run main .exe
@ashishmaleku9724
@ashishmaleku9724 3 ай бұрын
main.exe file is also created but it shows entry point not found how can i fix this
@Avinash_Lincoln
@Avinash_Lincoln Жыл бұрын
when I add the -s suffix lsfml-graphics-s shows no such file or directory error
@MustaphaMond-tt3pt
@MustaphaMond-tt3pt Жыл бұрын
Thanks you very much
@lucaabg3796
@lucaabg3796 3 жыл бұрын
nice video
@marclm8653
@marclm8653 Жыл бұрын
Thanks!!
@DaniyalAhmed1080
@DaniyalAhmed1080 11 күн бұрын
i have tried every possible way to get main.exe and wasted 8 hour straight.try different method but it did not work hope i will find a way out :).
@jimmyneutron129
@jimmyneutron129 2 жыл бұрын
Does not work
@quark_ow
@quark_ow 2 жыл бұрын
Thank you, however I am getting an error I cannot fix. At 4:30 in the video, I used "g++ -c main.cpp -I"C:\Users\(my name)\Documents\Libraries\SFML-2.5.1\include" and it says, "'g++' is not recognized as an internal or external command, operable program or batch file." I have tried adding C:\wingw32\bin\g++.exe to my environment variables but I still have the same error message? I have tried adding the program to System32 so that it can run the executable from there as well and it has not worked. I am on windows. Please help if you can, I have been spending days trying to fix this.
@VipapkStudiosOfficial
@VipapkStudiosOfficial 2 жыл бұрын
try gcc instead of g++
@BoostMyTool
@BoostMyTool 2 жыл бұрын
try this: kzbin.info/www/bejne/fIimZpmMoJWEp6c Then you need to restart vscode and the console (no need to restart your pc)
@quark_ow
@quark_ow 2 жыл бұрын
@@BoostMyTool Okay, thank you my friend, I will try that out and get back to you. I appreciate it.
@janschmidt5418
@janschmidt5418 2 жыл бұрын
@@BoostMyTool Thank you meen, this solved my problem! Spent hours to figure this out..
@diyaaldeen1097
@diyaaldeen1097 Жыл бұрын
when i try to download SFML, mcafee webadvisor sais that it's risky, and that the file may contain viruses
@gyoncode9290
@gyoncode9290 2 жыл бұрын
.\main doesnt work me !! :(
@AgentRex42
@AgentRex42 2 жыл бұрын
Me neither
@tyler3753
@tyler3753 Жыл бұрын
amazing
@faizivlogsofficial8678
@faizivlogsofficial8678 Жыл бұрын
there is no compiler path on my side
@ksawio1323
@ksawio1323 3 жыл бұрын
Make file doesnt work in my case it says : The term 'make' is not recognized as the name of a... this is happening when I type make clean
@BoostMyTool
@BoostMyTool 3 жыл бұрын
either you did not install the c/c++ compiler or you did not add it to your system environment variables or you installed mingw-w64. So if you are using mingw-w64, you need to call mingw32-make instead of make. if you are using mingw or msys2+mingw-w64 you should add the bin folders to the system environment variables to be able to run make. You can see the following videos: Install MSYS2/Mingw-w64 => kzbin.info/www/bejne/hai0oJWbm6tgn6c and Install Mingw-w64 => kzbin.info/www/bejne/p5zNlH2IfZx5d80 and Install MinGW & MSYS => kzbin.info/www/bejne/bKPFaKWBnpmIY6s
@nishanth6403
@nishanth6403 2 жыл бұрын
@@BoostMyTool bin folders of what? The Mingw64 and Cmake directories right? Done that and make is still not recognised.
@athallahyaristyan1932
@athallahyaristyan1932 2 жыл бұрын
need help getting erorr on after hitting enter on 7:24 error says C:\Users\ASUS\Documents\SFML-2.5.1\lib/libsfml-system-s.a(Err.cpp.obj):Err.cpp:(.text+0x3d): undefined reference to `_imp____acrt_iob_func'
@md.radhounuddinbhuiyan6556
@md.radhounuddinbhuiyan6556 Жыл бұрын
Brother i don't know why i face fetal error such no file or directory when ever i tried to build the program
@rezashir3873
@rezashir3873 7 ай бұрын
thank you
@jacobnarvades435
@jacobnarvades435 Жыл бұрын
10 minute video, took me 4 hours to set this up and still couldn't figure out the static file part Im dead
@CPlusPlusLover53
@CPlusPlusLover53 Жыл бұрын
Anybody else get errros when doing the rm -f main *.o command ???? , on windows , please help
@justjoseph0402
@justjoseph0402 2 жыл бұрын
its helpful, thx a lot, i sub yu
@mohdyusuf1450
@mohdyusuf1450 Жыл бұрын
i am not able to generate output
@djgerah693
@djgerah693 Ай бұрын
3:41 I still have that error, how to solve it? Just adding path to includePath doesn't help.
@djgerah693
@djgerah693 Ай бұрын
Well, the problem turned out to be that I was using clangd as intellisense.
@eshasaqib2075
@eshasaqib2075 6 күн бұрын
@@djgerah693 how did you do i am getting error and dont get it how to solve it can you please help. thanks!
@djgerah693
@djgerah693 Күн бұрын
@@eshasaqib2075 did you set intellisence as default? Or you use some kind of extension?
@cesarebinotto1197
@cesarebinotto1197 Жыл бұрын
Thank you! I have only one question, when I run the "main.exe" file , the window doesn't open, I've checked on google but i didn't find any answers. Thank you in advance
@luizfernandoschmittfilho8659
@luizfernandoschmittfilho8659 11 ай бұрын
same with me, i do ./myExeFile and nothing happens
@eaintkaykhaingkyaw5589
@eaintkaykhaingkyaw5589 9 ай бұрын
Any solution for that?😢
@eaintkaykhaingkyaw5589
@eaintkaykhaingkyaw5589 9 ай бұрын
Any solution for that?😢
@eaintkaykhaingkyaw5589
@eaintkaykhaingkyaw5589 9 ай бұрын
Any solution for that?😢
@babayaga206
@babayaga206 Жыл бұрын
Fatal error: can't create main.o: Invalid argument im getting this error when i try to complie it , anyone help pls
@ruscyber9765
@ruscyber9765 2 жыл бұрын
How to do that on mac?
@Ibloop
@Ibloop Жыл бұрын
at 2:35 even after I add the directory I still have the 2 errors... any suggestions?
@Ibloop
@Ibloop Жыл бұрын
Nevermind I managed to find a solution
@siete-g4971
@siete-g4971 Жыл бұрын
thank you
@Courage_the_Cowordly_Dog
@Courage_the_Cowordly_Dog 3 ай бұрын
You sounds like Mato chess trainer??
@savitrik3596
@savitrik3596 6 ай бұрын
main.exe does not open
@UnrealEnginecode
@UnrealEnginecode 2 жыл бұрын
thenks for sfml Go on
@metroexodus4388
@metroexodus4388 7 ай бұрын
make clean !!! ?? how?? someone explain this to me,
@hemantkumardas3333
@hemantkumardas3333 2 жыл бұрын
Thanks...
@sebmaier6995
@sebmaier6995 2 жыл бұрын
anyone had the error : makefile entrypoint not found ?? (after giving the make command)
@sebmaier6995
@sebmaier6995 2 жыл бұрын
solution: make path was not set in system variables
@morezatnt2228
@morezatnt2228 2 жыл бұрын
god thx a lot !!!!! i was about to suicide because i got a few errors !!! you are my saviour! God bless you !!!!
@abdomakol
@abdomakol 2 ай бұрын
Not wrking😢
@killkostll2455
@killkostll2455 Жыл бұрын
thanks
@zitriphyer8429
@zitriphyer8429 Жыл бұрын
It doesn't work. It just says no such file or directory
@netherdrake4877
@netherdrake4877 11 ай бұрын
Have you fixed it?
@The_double_side
@The_double_side 2 жыл бұрын
i am getting error , i tried many tutorials , everytime some errors popup , is there any correct way to do this?
@tonybengue
@tonybengue 2 жыл бұрын
same here ;(
@The_double_side
@The_double_side 2 жыл бұрын
@@tonybengue finally kzbin.info/www/bejne/jnaqfaZ-pZeVrZI
@morezatnt2228
@morezatnt2228 2 жыл бұрын
This tutorial works what's your error?
@tonybengue
@tonybengue 2 жыл бұрын
@@The_double_side It's done I have changed the compilator :)
@gyoncode9290
@gyoncode9290 2 жыл бұрын
@@tonybengue same here
@mostafajamal6874
@mostafajamal6874 11 ай бұрын
no quick fix avilable 🙃🙃
@gaming53wishmaster71
@gaming53wishmaster71 2 жыл бұрын
funny thing is is no one has gotten this to work dou to its a joke if it really works then put the whole fully set up and working ide up on gethub and show us how to use it to prove it works other wise you youtubers are fakers
@saicoromero1180
@saicoromero1180 Жыл бұрын
I have a erro to load sounds say "undefined reference to C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../.. `sf::SoundBuffer::~SoundBuffer()" have a solution?
@lucazorzi3077
@lucazorzi3077 11 ай бұрын
THE BEST
@miloszbociek8402
@miloszbociek8402 2 жыл бұрын
Guys I have a problem and I've already spend like half a day on it and that's why I beg for help. I've run these two commands: g++ -c main.cpp -I"SFML/include" -DSFML_STATIC g++ main.o -o App -L"SFML/lib" -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lopengl32 -lfreetype -lwinmm -lgdi32 -mwindows And here is the output after the second one: SFML/lib/libsfml-system-s.a(Err.cpp.obj):Err.cpp:(.text+0x3d): undefined reference to `_imp____acrt_iob_func' SFML/lib/libsfml-system-s.a(Err.cpp.obj):Err.cpp:(.text+0x9a): undefined reference to `_imp____acrt_iob_func' SFML/lib/libsfml-system-s.a(Err.cpp.obj):Err.cpp:(.text+0x113): undefined reference to `_imp____acrt_iob_func' SFML/lib/libsfml-system-s.a(Err.cpp.obj):Err.cpp:(.text+0x193): undefined reference to `_imp____acrt_iob_func' SFML/lib/libsfml-system-s.a(Err.cpp.obj):Err.cpp:(.text+0x1ee): undefined reference to `_imp____acrt_iob_func' SFML/lib/libsfml-system-s.a(Err.cpp.obj):Err.cpp:(.text+0x252): more undefined references to `_imp____acrt_iob_func' follow collect2.exe: error: ld returned 1 exit status I'm doing this on windows and I've cpoied the SFML folder into my project directory. Also this is in my c_cpp_properties.json file: "includePath": [ "${workspaceFolder}/**", ".\\SFML\\include" ], Please help because I could not find anything helpful fo this situation
@GabrielS111
@GabrielS111 2 жыл бұрын
hi, Im still having this problem, did u solve it?
@DinoLujetic
@DinoLujetic 2 жыл бұрын
type gcc --version to make sure what version of gcc you have (can be 32bit or 64bit). Redownload SFML according to your needs (either 32bit or 64bit) and I recommend downloading GCC 7.3.0 MinGW (DW2) or GCC 7.3.0 MinGW (SEH) - 64-bit.
@fangirlg2625
@fangirlg2625 Жыл бұрын
Thanks for the tutorial, though i am getting an error at 5:25 .....after running the command g++ main.o main -L "C:\Users\(my name)\Documents\libraries\SFML-2.5.1\include" -lsfml-graphics -lsfml-window -lsfml-system its showing a error :- main.o:main.cpp:(.text+0x7c): undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale' main.o:main.cpp:(.text+0xa2): undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj' main.o:main.cpp:(.text+0xde): undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE' main.o:main.cpp:(.text+0x115): undefined reference to `_imp___ZN2sf11CircleShapeC1Efj' main.o:main.cpp:(.text+0x126): undefined reference to `_imp___ZN2sf5Color5GreenE' main.o:main.cpp:(.text+0x130): undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE' main.o:main.cpp:(.text+0x142): undefined reference to `_imp___ZNK2sf6Window6isOpenEv' main.o:main.cpp:(.text+0x162): undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE' main.o:main.cpp:(.text+0x182): undefined reference to `_imp___ZN2sf6Window5closeEv' main.o:main.cpp:(.text+0x1af): undefined reference to `_imp___ZN2sf5ColorC1Ehhhh' main.o:main.cpp:(.text+0x1ca): undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE' main.o:main.cpp:(.text+0x1dd): undefined reference to `_imp___ZN2sf12RenderStates7DefaultE' main.o:main.cpp:(.text+0x1f1): undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE' main.o:main.cpp:(.text+0x273): undefined reference to `_imp___ZN2sf12RenderWindowD1Ev' main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0xa): undefined reference to `_imp___ZTVN2sf11CircleShmain.o:main.cpp:(.text+0x273): undefined reference to `_imp___ZN2sf12RenderWindowD1Ev' main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0xa): undefined reference to `_imp___ZTVN2sf11CircleShapeE' main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x17): undefined reference to `_imp___ZTVN2sf11CircleShapeE' main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x2a): undefined reference to `_imp___ZN2sf5ShapeD2Ev'collect2.exe: error: ld returned 1 exit status PS C:\Users\Roshmikana\New folder\GameProjects> g++ main.o -o main -lsfml-graphics -lsfml-window -lsfml-system c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lsfml-graphics c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lsfml-window c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lsfml-system collect2.exe: error: ld returned 1 exit status And could not generate the main .exe file Can someone help me with the error please😢
@aesthetictopus675
@aesthetictopus675 Жыл бұрын
Probably it is an error with your compiler, try reinstalling it with this tutorial kzbin.info/www/bejne/hai0oJWbm6tgn6c and then do the SFML setup again, must works :)
@cammasters2053
@cammasters2053 Жыл бұрын
Hi, at 6:10 when I run .\main nothing happens, no error message just moves onto next line without displaying the circle, has anyone else had this problem and can fix it?
@babelworks752
@babelworks752 Жыл бұрын
I have the same problem, and it seems some people have it as well... Doesn't seem to have a fix
@NoctisDarkhart
@NoctisDarkhart Жыл бұрын
Have you fixed it by now? I've run into this bs now
@kacpertarka
@kacpertarka 2 ай бұрын
for me using bash instead of cmd and ./main.exe worked
VSCode SFML Setup (Windows Edition)
20:14
CaffeinatedTech
Рет қаралды 20 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 13 МЛН
how to setup sfml for visual studio code and mingw
4:55
OURABIG
Рет қаралды 28 М.
C++ in VS Code: Building your Code with CMake
9:37
Visual Studio Code
Рет қаралды 44 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 404 М.
How to Set up VS Code for Data Science & AI
22:53
Dave Ebbelaar
Рет қаралды 327 М.
How To Use VS CODE for C++ | With CMake & Any Compiler
9:14
Code, Tech, and Tutorials
Рет қаралды 81 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 826 М.
Making a Game With C++ and SDL2
8:14
PolyMars
Рет қаралды 1,7 МЛН
Introduction to Google Test and CMake
31:32
Rhymu's Videos
Рет қаралды 142 М.