portable gui library for Pelles C??

Started by angel, November 09, 2004, 12:38:50 PM

Previous topic - Next topic

angel

Does anybody know a C open source portable gui library that compiles with Pelles C?
I was trying with some, and I was unsuccessful. May be I was doing something wrong setting up the Pelles C environment but I can´t figure out what it is .
For instance, I was trying to compile Leonardo library (http://www.leonardo-vm.org/) which is a simple C library and also it is promoted to be MS compiler compatible. I did compile it with Pelles C with MS compatibility but the compiler emits many warnings and errors. Therefore I concluded that the majority of the libraries are not ANSI 99 compliant.
Thanking you in advance,

Pelle

The attached file should compile. Expected directory is C:\leonardo - if you want to use a different directory, *at least* leonardo\examples\animation.ppj needs to be changed.

The warnings comes from function definitions like this:
some_function_name()
which in C++ means 'no arguments', but in C(99) means 'any number of arguments'. If you change it to:
some_function_name(void)
the Pelles C compiler will stop complaining about *that* (I have tried to make the necessary changes). You still get several warnings about unused variables - no big problem, but more of a 'logical' problem.

The errors comes from weird type casts, which I also have tried to fix.

Pelle
/Pelle

angel

Performs OK, Pelle, thank you,
I didn't expected that much.
Have you fixed all the C modules? if so it is the first C99 library in the net, wouldn't it be fine to make a leonardo.lib?
I'd appreciate your help.

angel

Pelle

Quote from: "angel"Have you fixed all the C modules?
I think so. The readme-file said: 'include all source files in the project', so I did. I just did enough to check that there were no problems with the compiler.

Quote from: "angel"wouldn't it be fine to make a leonardo.lib?
Probably useful - maybe when I have more spare time...

Pelle
/Pelle