[comp.windows.x] compiling X programs with g++

pattersw@cs.rpi.edu (William Patterson) (07/19/90)

Does anyone know what's reqired to get X windows programs (using
athena widgets) to compile using g++?

I tried it on an example (no C++ code) X program written in standard
C, with no luck.  The program compiles fine with cc.

I tried :  g++ filename.cc -ansi -lXaw -lXmu -lXt -lXext -lX11
and     :  g++ filename.cc -traditional -lXaw -lXmu -lXt -lXext -lX11

Both produced compile errors.  
Anybody have any suggestions?
-- 

-----------------------------------
Bill Patterson
pattersw@turing.cs.rpi.edu

Computer Science Department
Rensselaer Polytechnic Institute
Troy, NY.
-----------------------------------