User forums > Help

Bad stdio.h or something with SDL?

<< < (2/3) > >>

rickg22:
I was pretty enthusiastic about it, but then Yiannis said the non-alpha icons looked ugly :-(

And nobody worked on improving them.

sasq:
Thanx a lot for the answers and that "patch", Urxae! You are great! :D

A'propos icons: Yes, AFAIK only WinXP supports alpha-blending icons. Maybe the solution is to pack both versions of icons in one ICO file. As I remember, I was doing that in my Win32 API programs - an ICO file can contain several icons, for different color-depths and sizes, in one file. Only I don't know if it's possible to use ICO files in wxWidgets instead of that PNG icons, maybe not ;) [but in the other hand - it is advantage, because one may substitute the icons with his own to get more personal look ;D ]

takeshimiya:
IMHO a good solution to this would be loading the PNGs and replacing the alpha channel with a wxSYS_COLOUR_BTNFACE in real time.

I don't understand why this it's not handled at wxWidgets level yet.

b_lawson:

--- Quote from: Urxae on November 23, 2005, 11:46:00 pm ---Yes, long long s both in C99 and in the GNU C++ dialect. However, you're compiling C++ source files (so no C99) with -pedantic specified (so no GNU extensions). Either rename your source to main.c and continue in C (wouldn't reccomend it ;)) or remove -pedantic from the compiler options. That should fix it.

--- End quote ---

Unfortunately, I'm now getting these same types of errors as well.  I downloaded and extracted the latest nightly (win32 rev1940) build from last night and all was fine until I started playing around with the compiler flags.  At one point I switched on the -pedantic flag and of course got the errors mentioned above.  However when I switched all flags back to normal (no -pedantic flag and -W for standard errors and -g for debugging info) I still continue to get the errors.  I looked at the .cbp file, which fortunately is XML and discovered that one of my projects still had the -pedantic compiler flag set, so I removed that line manually.  However, I'm still getting the build errors even after reloading the project.

I should note that this is a multi-project workspace.  However, when doing a find in files over all files for the project nothing comes up with a -pedantic in it.  Also, all files are .h/.cpp files.

Any ideas?

b_lawson:
I just wanted to follow up with this.  The problem was/is apparently there are also unique compiler settings stored somewhere/somehow for the compiler under the menu: Settings->Compiler and Debugger->Global Compiler Settings.  Those flags I guess override any and all "project setting" compiler flags?  So, in there I had accidentally checked the -pedantic flag which was still overrriding my project setting flags.

Anyway, just something to be aware of for noobs like myself.  8)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version