Re: FVWM: FVWM2.0.26 & egcs

From: Paul D. Smith <psmith_at_BayNetworks.COM>
Date: 23 Jan 1998 12:50:01 -0500

%% 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.
--
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 - 11:51:51 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST