User forums > Help

Weird console issue

<< < (2/2)

CopperCAT:

--- Quote from: MortenMacFly on January 26, 2010, 10:10:52 am ---There is. Look at the linker options. They are different (and that's exactly what the options does).

--- End quote ---

Wait, so I do this: I go to Project > Properties > Build targets and for "Type" I choose "GUI application". I then press "Rebuild". App displays window but seems to hang. Then, I go to properties again, and choose "Console application". I *only* press "Run". App works.

Thus, at least the linker executed as well the second time?

Edit: I noticed that the problem seems to be that when setting type to GUI application, "SDL_Flip(Surface)" does not return.


CopperCAT:
Ok, another test. If I make a shortcut on my KDE desktop to my app, it also runs fine without console. So now I really feel convinced this is a codeblocks issue.

Jenna:
You can try to create a test sdl app with the wizard, and look for difference(s) in the setup, because it works out of the box.

CopperCAT:

--- Quote from: jens on January 26, 2010, 06:58:17 pm ---You can try to create a test sdl app with the wizard, and look for difference(s) in the setup, because it works out of the box.

--- End quote ---

The setups are the same, but the example application from the wizard runs fine.

I guess I'll leave it like that. The problem exists only when running from within codeblocks so it does not really matter in the end user version...

Navigation

[0] Message Index

[*] Previous page

Go to full version