Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-15-2010, 04:58 PM   #1
LQ Newbie
Registered: Jun 2010
Location: Altadena, CA
Posts: 3

Rep: Reputation: 0
compiling MESA-Motif widget app....undefined reference to `glwM2DrawingAreaWidgetClas


I'm attempting to compile a MESA-Motif-Glut app on EL5. When this code is compiled, ld returns:

oddgui.c:5474: undefined reference to `glwM2DrawingAreaWidgetClass'

glwM2DrawingAreaWidgetClass is not referenced in the code:

XtCreateWidget("OGLMwidget", glwMDrawingAreaWidgetClass, frame3, al, ac);

It appears that GL/GLwDrawA.h is making the substitution:

#if XmVERSION == 2
# define _GLwMDrawingAreaClassRec _GLwM2DrawingAreaClassRec
# define _GLwMDrawingAreaRec _GLwM2DrawingAreaRec
# define glwMDrawingAreaWidgetClass glwM2DrawingAreaWidgetClass
# define glwMDrawingAreaClassRec glwM2DrawingAreaClassRec
# define GLwCreateMDrawingArea GLwCreateM2DrawingArea
#error "Sorry, unknown Motif version."
#endif /* XmVERSION */

Yet both glwMDrawingAreaWidgetClass and glwM2DrawingAreaWidgetClass are in

I suspect that there's a problem in GLwDrawA because I don't see this problem under Solaris or Mac OSX.

The relevant packages are:

mesa-libGL-devel.i386 6.5.1-7.8.el5
mesa-libGLU-devel.i386 6.5.1-7.8.el5
mesa-libGLw-devel.i386 6.5.1-7.8.el5
openmotif-devel.i386 2.3.1-2.el5_4.1
freeglut-devel.i386 2.4.0-7.1.el5

Thanks, Jeff


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
undefined reference to `yywrap' compiling PAM Mahonri Debian 5 12-30-2011 07:00 PM
[SOLVED] kernel compiling undefined reference error bahhti Programming 5 04-02-2010 12:00 AM
PGPlot in 'C' compiling: undefined reference to `MAIN_` (ubuntu 8.10) SuperNomad Programming 3 02-28-2009 01:33 PM
Undefined reference to WxGtk libraries when compiling Xchm Darwish Linux - Software 0 09-04-2005 12:11 AM
undefined reference to `cfb_fillrect' and more when compiling kernel KR-data Linux - Software 0 09-03-2005 02:56 PM

All times are GMT -5. The time now is 05:01 AM.

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