SFML community forums

Help => Graphics => Topic started by: Teknol on September 10, 2017, 06:00:00 am

Title: No SFML view window
Post by: Teknol on September 10, 2017, 06:00:00 am
So I'm using code blocks to run sfml, and I created a new project with the basic setup using hopson's tutorial.

The example code compiles correctly but no view window pops up

Am I doing something wrong? I edited the build option correctly and pasted all the bin files in my project file. There is no errors in the code as there is no error

(https://uploads.tapatalk-cdn.com/20170910/9a9ee0ec557cc21f7a68efb77c036967.jpg)
Title: Re: No SFML view window
Post by: Teknol on September 10, 2017, 06:10:13 am
I'm using sfml 2.4.2 and I have minGW in my environmental factor, Path


Sent from my iPhone using Tapatalk
Title: Re: No SFML view window
Post by: eXpl0it3r on September 10, 2017, 09:28:14 am
The return value from main isn't 0, so it must have been force closed.
Check that your anti-virus software isn't interfering and run the application in debug mode through the debugger to catch where it crashes.
Title: No SFML view window
Post by: Teknol on September 12, 2017, 01:06:24 am
Thank you very much!!

I've ran it on debug, didn't seem to work, so I restated everything and finally I got my sfml window. I don't know what was the problem but thank you for helping!!!

Can't seem to change the title to [solved]


Edit:
I think the issue was that the SFML file was in my documents file when my program was in my USB so that it couldn't find it. I changed it so that the SFML file is now inside my USB as well
Title: Re: No SFML view window
Post by: Hapax on September 12, 2017, 03:18:18 pm
Can't seem to change the title to [solved]
You should be able to add [solved] to the title by editing the original post.