Re: C++ libs and GTK interface
- From: Silviu Minut <minut math msu edu>
- To: Vicki Stanfield <vicki thepenguin org>
- Cc: gtk-list gnome org
- Subject: Re: C++ libs and GTK interface
- Date: Wed, 23 May 2001 23:47:36 -0400 (EDT)
For one, I believe that's the out of the box g++ on RH, and it has many
problems. Download upgraded versions from redhat. I'm running
gcc-c++-2.96-69 and it's fine. There are even newer packages, I'm sure.
Other than that, I did write a couple of gtk applications in C++ (not
terribly complicated though), just as you would expect. Include the c++
headers, and use cin/cout instead of printf. I did have templates and
classes, but all unrelated to gtk. No strange behavior from combining c++
with gtk.
If you want to do this right though, you can use gtk--, which is a c++
port of gtk to c++.
Finally, what exatcly happens when you try to compile?
On Tue, 22 May 2001, Vicki Stanfield wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm develop a GTK gui for an application written in C++, and I can't get it
> to compile with g++ on my linux box. I know that it can be done, because I've
> seen references to such things as I've researched the question. I would
> really appreciate a hint as to where I might find a simple example or a brief
> overview of the puzzle piece that is missing. For the record, I am using
> RedHat with gcc-c++-2.96-54.
>
> The error that I'm encountering when I try to compile is:
>
> "conversion from `int' to `enum GtkRcFlags'"
>
> Thanks,
> vicki
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE7Cp6qvFwCsl/kaSARAs7WAJ0ej/O3rd5QvyAuUjuN+GzUSc9MOwCfbYHz
> WVgMlojWgpkG/Pvff4cnwpk=
> =E0Bu
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]