NO

Author Topic: portable gui library for Pelles C??  (Read 4977 times)

angel

  • Guest
portable gui library for Pelles C??
« on: November 09, 2004, 12:38:50 PM »
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,

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
portable gui library for Pelles C??
« Reply #1 on: November 09, 2004, 05:20:48 PM »
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

  • Guest
the first C99...
« Reply #2 on: November 10, 2004, 12:11:16 PM »
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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: the first C99...
« Reply #3 on: November 10, 2004, 06:52:54 PM »
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