This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Strange Behavior with compiling
- To: automake@gnu.org
- Subject: Strange Behavior with compiling
- From: Pete Willemsen <willemsn@cs.uiowa.edu>
- Date: Mon, 21 Jun 1999 21:43:27 -0500
Hello.
I'm using automake and autoconf in the development of a project I'm
working on. They are working great if I don't use the EGCS compilers.
I'm really not sure what is going on, but I thought I would pose my
problem and see if others had any ideas.
I have my configure.in script set to use CXX=CC and CXXFLAGS="-n32 -O2"
since the majority of my development is on an IRIX system. This works
fine.
I also have my configure.in script set up to let me override CXX and
CXXFLAGS in a normal manner by setting environment variables.
Sometimes, I compile my code (on SGI IRIX and Linux) using the EGCS
compilers. When I set CXX=c++ and CXXFLAGS="-O2 -Wall", run configure,
and then try to compile, I get the following result:
--------
Making all in libarts
make[3]: Entering directory `/home/willemsn/Research/hank/src/libarts'
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -O2 -Wall -DLINUX
-c sema.C
Usage: cpp [switches] input output
Switches:
-include <file> Include the contents of <file> before other
files
-imacros <file> Accept definition of marcos in <file>
...
-remap Remap file names when including files.
-h or --help Display this information
cpp: Too many arguments
make[3]: *** [sema.o] Error 1
--------
I can't see what's wrong with the compile command. In fact, if I cut
and paste the "c++ -D..." line above at a shell prompt everything works
out fine.
I get this behavior both on the IRIX system and on the Linux system when
I use the EGCS compilers (I only have EGCS on my Linux box).
Has anyone else noticed anything like this? Does anyone have any ideas?
Many thanks for your time!
Pete
----------------------------------------------
Pete Willemsen Department of Comp. Sci.
willemsn@cs.uiowa.edu University of Iowa
----------------------------------------------