LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2005, 12:22 PM   #1
Neruocomp
Member
 
Registered: Oct 2004
Distribution: Slackware, CentOS
Posts: 135

Rep: Reputation: 15
Matplotlib: Need help fixing weird include error


I'm running RH EL4 x86_64 on a dual Xeon machine. (cool huh? Its not mine, but the university's)I'm trying to install Matplotlib to do some work and I installed all the prereqs it needed. Pygtk2 is one of them. When I run "python setup.py build" it fails when it includes /usr/include/pygtk-2.0/pygobject.h

In file included from src/_gtkagg.cpp:10:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before "typename"
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before "typename"
error: command 'gcc' failed with exit status 1

Here is a snip of the offending code:

struct _PyGObject_Functions {
......
PyObject *(*enum_add)(PyObject *module,
const char *typename,
const char *strip_prefix,
GType gtype);
PyObject* (*enum_from_gtype)(GType gtype, int value);

PyTypeObject *flags_type;
PyObject *(*flags_add)(PyObject *module,
const char *typename,
const char *strip_prefix,
GType gtype);
....
};

I don't know why it would need a , or ... before the pointer.

Any Ideas?
David
 
Old 09-15-2005, 06:56 PM   #2
zovirl
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
typename is a c++ keyword so they shouldn't have called their variable that. Sounds a lot like this: http://matplotlib.sourceforge.net/faq.html#PYGTK24
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fixing an error in LQ Tutorials. xushi LQ Suggestions & Feedback 3 04-30-2005 09:20 AM
Fixing File System Error on Debian Box doctorcisco Linux - Software 0 05-21-2004 03:36 PM
multiple #include 'Error' Hady Programming 6 02-07-2004 09:53 AM
Need help fixing my GRUB user error. Mediocre_Driver Linux - Software 9 01-24-2004 12:52 PM
#include <iostream> ERROR alexrm1x Programming 9 03-14-2003 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration