User forums > Using Code::Blocks

project with sfml :unable to run .exe

(1/3) > >>

skool daze:
Hello, after reading a bit the wiki (recommend any tutorials?) I didn t found anything related to my annoying problem:    though the execution in the C::B 13.12 is OK, the .exe is only half a second active, with no proper image in the window.
I've been triyng with the options related to debug/release (project options) and of course put the *.dll in the same release directory, made sure everything is logic in search directories, compiler/linker directories   (the dll are for the non static, non debug version, and they are from the last SFML);   but all these fails.

What do you think am I mistaken?
Is it maybe a SFML related problem?    Many thanks!!.

scarphin:
Are you sure that is not a programming problem? To test this you can run the executable from the command line, if it still doesn't work then you have to check your code.

skool daze:
The O.S. is WinXP and it runs adequately my average DOS exes.
The problem is that executable only runs from the IDE, not "double-clicking" on it.
I´m working as possible solution the debug/release issue, but nothing so far.
Any doc about the debug/release?

scarphin:

--- Quote from: skool daze on September 15, 2015, 01:33:57 pm ---The problem is that executable only runs from the IDE, not "double-clicking" on it.

--- End quote ---
Probably you don't have the required dlls in your system path for your executable to run from shell (cmd). First of all please try to copy the required dlls to where your executable is and try to run it from shell (cmd.exe) and check if it is working or not. If it's not working from shell then the problem is most likely a bug in your code. You can use 'dependency walker' to see what dlls your program require. Please use google if you need more information about dependency walker, system path, cmd.exe etc...

Debug and Release are targets with debug symbols enabled for the debug target and some optimizations enabled for the release target. They normally shouldn't effect your programs behavior.

BlueHazzard:
Are you loading some external files? remember to copy also this files.... This is clearly no c::b or compiling problem, but something you are doing in your logic (probably loading some files)
I recommend to improve the error checking in your program

greetings...

Navigation

[0] Message Index

[#] Next page

Go to full version