This worked but if you re run your executable outside of the compiler then there are missing the dlls, but even if you put all the dlls that are missing then you will have the final error "The application was unable to start correctly". Maybe they weren't compiled static.
I did all the directions you gave (downloading the same versions of Codeblocks and SFML you did, and made all of the changes in the build options you did), but when I built it, I got several errors, most were "undefined reference to `_imp___[seemingly random characters]'". Do you (or anyone else) know what is causing this error? I am using Windows 7 Ultimate (with Service Pack 1). Here is the full error message: (My computer username is 'ORCA', and my Codeblocks project is called 'koblo') ||=== Build: Debug in koblo (compiler: GNU GCC Compiler) ===| obj\Debug\main.o(.text+0x1ea)||In function `main':| C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|5|undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'| obj\Debug\main.o(.text+0x228):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|5|undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'| obj\Debug\main.o(.text+0x27c):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'| obj\Debug\main.o(.text+0x337):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|6|undefined reference to `_imp___ZN2sf11CircleShapeC1Efj'| obj\Debug\main.o(.text+0x348):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|7|undefined reference to `_imp___ZN2sf5Color5GreenE'| obj\Debug\main.o(.text+0x35a):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|7|undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'| obj\Debug\main.o(.text+0x374):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|9|undefined reference to `_imp___ZNK2sf6Window6isOpenEv'| obj\Debug\main.o(.text+0x3a0):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|12|undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE'| obj\Debug\main.o(.text+0x3c7):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|15|undefined reference to `_imp___ZN2sf6Window5closeEv'| obj\Debug\main.o(.text+0x3f9):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|18|undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'| obj\Debug\main.o(.text+0x420):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|18|undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'| obj\Debug\main.o(.text+0x427):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'| obj\Debug\main.o(.text+0x446):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'| obj\Debug\main.o(.text+0x456):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|20|undefined reference to `_imp___ZN2sf6Window7displayEv'| obj\Debug\main.o(.text+0x48d):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'| obj\Debug\main.o(.text+0x52e):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'| obj\Debug\main.o(.text$_ZN2sf11CircleShapeD1Ev[sf::CircleShape::~CircleShape()]+0xa)||In function `ZN9__gnu_cxx13new_allocatorIcE10deallocateEPcj':| C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\bits\allocator.h||undefined reference to `_imp___ZTVN2sf11CircleShapeE'| obj\Debug\main.o(.text$_ZN2sf11CircleShapeD1Ev[sf::CircleShape::~CircleShape()]+0x1a):C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\bits\allocator.h||undefined reference to `_imp___ZTVN2sf11CircleShapeE'| obj\Debug\main.o(.text$_ZN2sf11CircleShapeD1Ev[sf::CircleShape::~CircleShape()]+0x2a):C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\bits\allocator.h||undefined reference to `_imp___ZN2sf5ShapeD2Ev'| ||=== Build failed: 19 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===| ORCA\
@@EricusIT Just any cause for the error that could easily be fixed, by changing some settings, downloading a library that is needed, reinstalling a program or library, or any change needed that would make it so the program works, instead of having the error I mentioned.
I watched 30 tutorials about it and your's finnaly worked! Wideo with 515 views isn't easy to find
Thank u very much just share, like and subscribe.. I will bring more later
Thanks man , ive been trying to do this for months now
U welcome and dont forget to subscribe for more
Thanks very much 🎉🎉🎉🎉🎉🎉🎉🎉😮❤
This worked but if you re run your executable outside of the compiler then there are missing the dlls, but even if you put all the dlls that are missing then you will have the final error "The application was unable to start correctly". Maybe they weren't compiled static.
any screen shot
@@EricusIT I do not have currently a screenshot because I stopped using sfml for now. If I will retry to compile it again I will post.
I am so close, I have a problem. It says entry point not found. Can you contact me? Your the only video that worked.
Thanks
u welcome
Thanks allot🙏💯
U welcome
Thanks Man :)
u welcome
Koblo
I did all the directions you gave (downloading the same versions of Codeblocks and SFML you did, and made all of the changes in the build options you did), but when I built it, I got several errors, most were "undefined reference to `_imp___[seemingly random characters]'". Do you (or anyone else) know what is causing this error? I am using Windows 7 Ultimate (with Service Pack 1). Here is the full error message:
(My computer username is 'ORCA', and my Codeblocks project is called 'koblo')
||=== Build: Debug in koblo (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o(.text+0x1ea)||In function `main':|
C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|5|undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'|
obj\Debug\main.o(.text+0x228):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|5|undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'|
obj\Debug\main.o(.text+0x27c):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'|
obj\Debug\main.o(.text+0x337):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|6|undefined reference to `_imp___ZN2sf11CircleShapeC1Efj'|
obj\Debug\main.o(.text+0x348):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|7|undefined reference to `_imp___ZN2sf5Color5GreenE'|
obj\Debug\main.o(.text+0x35a):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|7|undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'|
obj\Debug\main.o(.text+0x374):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|9|undefined reference to `_imp___ZNK2sf6Window6isOpenEv'|
obj\Debug\main.o(.text+0x3a0):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|12|undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE'|
obj\Debug\main.o(.text+0x3c7):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|15|undefined reference to `_imp___ZN2sf6Window5closeEv'|
obj\Debug\main.o(.text+0x3f9):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|18|undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'|
obj\Debug\main.o(.text+0x420):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|18|undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'|
obj\Debug\main.o(.text+0x427):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'|
obj\Debug\main.o(.text+0x446):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'|
obj\Debug\main.o(.text+0x456):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|20|undefined reference to `_imp___ZN2sf6Window7displayEv'|
obj\Debug\main.o(.text+0x48d):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o(.text+0x52e):C:\Users\ORCA\Documents\Entertainment\programming\C++ save\koblo\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o(.text$_ZN2sf11CircleShapeD1Ev[sf::CircleShape::~CircleShape()]+0xa)||In function `ZN9__gnu_cxx13new_allocatorIcE10deallocateEPcj':|
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\bits\allocator.h||undefined reference to `_imp___ZTVN2sf11CircleShapeE'|
obj\Debug\main.o(.text$_ZN2sf11CircleShapeD1Ev[sf::CircleShape::~CircleShape()]+0x1a):C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\bits\allocator.h||undefined reference to `_imp___ZTVN2sf11CircleShapeE'|
obj\Debug\main.o(.text$_ZN2sf11CircleShapeD1Ev[sf::CircleShape::~CircleShape()]+0x2a):C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\bits\allocator.h||undefined reference to `_imp___ZN2sf5ShapeD2Ev'|
||=== Build failed: 19 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|
ORCA\
like what
@@EricusIT Just any cause for the error that could easily be fixed, by changing some settings, downloading a library that is needed, reinstalling a program or library, or any change needed that would make it so the program works, instead of having the error I mentioned.
@@fould13 make sure u type the linked library name very well, spell them well
@@EricusIT Okay, I might try looking over the names I used, just to make sure I didn't mis-spell anything.