Message-ID: <39FA0308.B8AE60D7@trollope.org> From: Michael Powe X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Problem calling compiler from within an editor Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 47 Date: Fri, 27 Oct 2000 15:34:48 -0700 NNTP-Posting-Host: 207.240.203.96 X-Complaints-To: news AT aracnet DOT com X-Trace: typhoon.aracnet.com 972686207 207.240.203.96 (Fri, 27 Oct 2000 15:36:47 PDT) NNTP-Posting-Date: Fri, 27 Oct 2000 15:36:47 PDT Organization: Aracnet Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm having a problem getting gcc to compile certain sources from within an editor (editplus). Normal, ANSI source seems to be fine. However, when I try to compile with nonstandard headers/libraries (pdcurses), I've been having no luck. Below is the output from using the `-v' switch. Notice that the filename (newdemo.c) is fine in the first line in which it appears but has mysteriously turned into a c++ file in the second. I guess my question is, is the second appearance of the filename coming from the editor (again) or is it something that gcc is putting in there and screwing up somehow. Thanks for any help. I've twisted and turned this thing every which way, I can't make out what I'm doing wrong. mp --------- GCC -CURSES ---------- Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.952/specs gcc version 2.95.2 19991024 (release) c:/djgpp/lib/gcc-lib/djgpp/2.952/cpp.exe -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -Wall -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/djgpp/lib/../include/sys/version.h -remap NEWDEMO.C c:/djgpp/tmp\ccrWnOub.ii GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/include c:/djgpp/lib/gcc-lib/djgpp/2.952/include c:/djgpp/include End of search list. The following default directories have been omitted from the search path: c:/djgpp/lang/cxx $DJDIR/lang/cxx $DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include End of omitted list. cc1plus c:/djgpp/tmp\ccrWnOub.ii -quiet -dumpbase NEWDEMO.cc -Wall -version -o c:/djgpp/tmp\ccvubPwk.s gcc.exe: installation problem, cannot exec `cc1plus': No such file or directory (ENOENT) Normal Termination Output completed (0 sec consumed).