LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-15-2010, 03:58 PM   #1
planetfarer
LQ Newbie
 
Registered: Jun 2010
Location: Altadena, CA
Posts: 3

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


Hi,

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
#else
#error "Sorry, unknown Motif version."
#endif /* XmVERSION */

Yet both glwMDrawingAreaWidgetClass and glwM2DrawingAreaWidgetClass are in libGLw.so.1.0.0

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
 
  


Reply


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

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

All times are GMT -5. The time now is 06:12 AM.

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