Well you guys hit it on the head for me. Thanks! I didn't see
the LinuxMachineDefine entry in there. Guess I shouldn't work on this
stuff at the crack of dawn. :) In any case, it would appear the cpp
in egcs, pgcc and gcc 2.8.0 is processing the linux.cf differently than
gcc 2.7.2.x and for some reason it never hits the line:
#define LinuxMachineDefine -D__i386__
I found if I moved this line to immediately after the LinuxSourceDefines
in linux.cf it works great. Thanks again for all the help. It was driving
me nuts. :)
-Scott
On 23-Jan-98 Paul D. Smith wrote:
> %% Scott Lampert <fortunato_at_heavymetal.org> writes:
>
> sl> On 23-Jan-98 Bruce Stephens wrote:
>
> >> I confess I haven't looked, but I find it really hard to believe
> >> that gcc now can't accept -c and -o on the same line.
>
> Ditto here, in spades.
>
> sl> Well believe it. Here's a snip from just one object
> compile. It
> sl> will do this for everything.
>
> I _still_ don't believe it, and now I can see your problem (first rule
> of reporting bugs: _always_ cut and paste the exact problem!)
>
> sl> gcc -Wall -O2 -I. -I../../libs -I/usr/X11R6/include
> -I/include
> sl> -Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L
> -D_POSIX_SOURCE
> sl> -D_BSD_SOURCE -D_SVID_SOURCE -DNO_MESSAGE_CATALOG -DFUNCPROTO=15
> sl> -DNARROWPROTO -DSHAPE -DACTIVEDOWN_BTNS -DINACTIVE_BTNS
> -DMINI_ICONS
> sl> -DVECTOR_BUTTONS -DPIXMAP_BUTTONS -DGRADIENT_BUTTONS -DMULTISTYLE
> sl> -DEXTENDED_TITLESTYLE -DBORDERSTYLE -DUSEDECOR -DWINDOWSHADE -DXPM
> -c
> sl> FvwmButtons.c -o FvwmButtons.o
> sl> gcc: cannot specify -o with -c and multiple compilations
>
> Yes, "multiple compilations". I certainly believe that.
>
> Allow me to remove the extraneous -I and -D options from your compile
> line, and it should be obvious what the problem is:
>
> sl> gcc -Wall -O2 LinuxMachineDefines -c FvwmButtons.c -o
> FvwmButtons.o
>
> DOH! You appear to be trying to compile two files (LinuxMachineDefines
> and FvwmButtons.c) into one object file (FvwmButtons.o). Not gonna
> happen!
>
> PS. Can't FVWM use config.h or something instead of providing all those
> -D options on the compile line? It's most annoying to read :)
>
> --
> -------------------------------------------------------------------------
> ------
> Paul D. Smith <psmith_at_baynetworks.com> Network Management
> Development
> "Please remain calm...I may be mad, but I am a professional." --Mad
> Scientist
> -------------------------------------------------------------------------
> ------
> These are my opinions--Bay Networks takes no responsibility for
> them.
---
Scott Lampert | Home Page: http://www.heavymetal.org
fortunato_at_heavymetal.org | PGP Key: finger fortunato_at_heavymetal.org
"Sing the Hare Hare, |_________________________________________
Dance the Hoochie Koo"
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jan 23 1998 - 15:49:01 GMT