I'm porting an application to Linux, written on IRIX (and successfully ported to AIX (years ago)). One of the issues I found was glwMDrawingAreaWidgetClass is not supported on Linux (use glwDrawaingAreaWidgeClass no 'M'). So I switched it. I built the app on Ubuntu 10.10. Now I'm trying to build on 14.04 (and also tried on 15.10). But I get the following error.
Multiple Definition of glwMDrawingAreaWidgetClass.
I get this for a dozen (or so) files. The thing is .. I am NOT using it.
So in good debugging style I asked: what has changed. The makefiles are the same, the files are the same. It must be the libraries or the compiler (G++).
I have looked everywhere (google search) to find this error. I have not found a solution (or even the problem).
Has anyone noticed this? I suspect its a library issue.
I am using the following libraries to link:..
-lxvw -ldot -lmath -lXm -lXt -lXext -lX11 -lglut -lGLU -lGL -lGLw -lm -lpthread.
The first three are mine. I tried removing glut, GLU, GL, GLw. The either make no difference, or I can't link. I suspect it is GLw.
I am linking statically.
Thanks