Mail Archives: djgpp/2006/01/25/12:15:43
Rafael Morales Castro <nabucodonosor78 AT yahoo DOT com> wrote:
> I install djgpp on winXP and want to compile a program using
> gcc -g -Ic:\djgpp\include -c myzip.cpp -o myzip.exe
That command line is blatantly wrong on one count, and questionable on
another:
*) options "-c" and "-o myzip.exe" contradict each other. If you
want an executable, you must not use -c.
*) -Ic:\djgpp\include is, or at least it *should* be, completely
superfluous. Get rid of it.
> gcc: installation problem, cannot exec `cc1plus': Invalid argument
You don't supply enough details for anybody to be sure what went wrong
here. The most likely reasons would be
1) you forgot to actually install the C++ compiler
2) you didn't read the README, causing you to unzip stuff
in the wrong way
3) you didn't read the README, causing you to install in a
badly chosen place.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -