[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gcc and egcs



Last night I was trying to compile to programs that were written in c++
(wmcdplay & wmmixer). The installation instructions said to run xmkmf,
then make. When I did this xmkmf set CXX=c++ and CC=gcc. At this point I
should mention that I did NOT have egcs installed on my system, so c++ did
not exist, and when I changed the Makefile so that CXX=gcc, gcc
complained. (I can't remember the exact error, and I am away from my
machine.)

Why did xmkmf choose to set CXX=c++?

Things get more interesting.

I figured since it wants c++, I'd give it c++. I installed egcs, ran xmkmf
again, and tried make. This time, c++ worked, but the Makefile tried to
use gcc to link the object files! Luckily this only happenned once during
the make, so I could run c++ manually to link the object files. This
finally gave me the compiled program (that works).

If this was a bigger program, this would cause such a headache. It almost
makes me want to go back to Bo.

Is the problem with the Makefile.in? Or is it in /etc/X11/config (or is
that /usr/X11R6/lib/X11/config?) Anyways where-ever xmkmf looks for config
info.

Thanks.

-------------------------------------------------------------------------------
Greg Starkes, Computing & Communications, Memorial University of Newfoundland.
e-mail: gstarkes@morgan.ucs.mun.ca        www: http://www.cs.mun.ca/~gstarkes/

    "You can twist perception, reality won't budge."
    							-Neil Peart, Rush


--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: