Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: No SFML view window  (Read 2264 times)

0 Members and 1 Guest are viewing this topic.

Teknol

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
No SFML view window
« 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


Teknol

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Re: No SFML view window
« Reply #1 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10998
    • View Profile
    • development blog
    • Email
Re: No SFML view window
« Reply #2 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Teknol

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
No SFML view window
« Reply #3 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
« Last Edit: September 12, 2017, 02:14:36 pm by Teknol »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: No SFML view window
« Reply #4 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.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*