This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Program
- To: Myke and Chelle <mcmburney1 at home dot com>
- Subject: Re: Program
- From: Eric Christopher <echristo at redhat dot com>
- Date: Wed, 14 Mar 2001 16:02:23 -0800
- CC: gcc at gcc dot gnu dot org
- References: <000a01c0acdf$5b5a4160$5539b518@mntgmy1.al.home.com>
> Myke and Chelle wrote:
>
> To whom it may concern,
> I have purchased the Teach yourself C++ 6th edition.
> After I put the CD in my CD-ROM, I installed the program to the
> default directory.
> When I run the IDE and write any code (program), I get errors and it
> does not complete the build. I was wondering what I should set in the
> options for this program to build and execute the programs I write.
> The specific error I get all the time is as follows:
>
> gcc.exe cannot specify -o with -c or -S and multiple compilations
>
You should try the compilation by hand. We have no idea about their
IDE.
Likely it is passing something like:
gcc -c foo.c bar.c -o blah
to gcc. Gcc doesn't handle this, so you'll need to compile it
otherwise.
gcc -c foo.c -o foo.o
gcc -c bar.c -o bar.o
gcc foo.o bar.o -o blah
or for simple one file programs:
gcc foo.c -o foo
-eric