delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/10/23:04:32

Message-ID: <20010711030224.12370.qmail@web12204.mail.yahoo.com>
Date: Tue, 10 Jul 2001 20:02:24 -0700 (PDT)
From: Matt Mooney <m4mooney AT yahoo DOT com>
Subject: compiler help
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

  I have been trying to figure out my problem for
weeks now--reinstalling, reading the DJGPP FAQ, and
reading the mailing lists.  I have the 2.95.5 version
of DJGPP and the 1.4 version of RHIDE.  I received the
compiler with a book I bought--"Learning to Program in
C++"--and I followed the installation instructions
exactly.  I know that the problem isn't the way I am
installing the compiler because I installed it on one
of my friends computers--he is running Windows 98--and
on my old computer which is running Windows 95.  
  I am currently trying to make the installation on
Windows ME.  The book I bought came with sample code
that had a few programs that were already executables.
 So I type in the files name in DOS and it ran.  So I
thought that everything was fine, and tried to compile
my first program:

#include <iostream.h>

int main()
{
  short x;
  short y;

  cout<<"Please enter two numbers:\n";
  cin>> x >> y >>endl;

  cout<<"The numbers you entered were "<< x <<" 
         and "<< y <<endl; //all on one line
  
  return 0;
} 

The output by the compiler was:  

Creating matt.cc
The error was: Invalid Argument (EINVAL) 
no errors

so I hit run and it returned a program exit code of -1
(0xffffffff); there was no output.  So I read the
mailing lists and followed what they said.  I set
LFN=y in my AUTOEXEC.BAT and in the DJGPP.ENV files,
restarted the computer and tried again.
  Finally, that annoying error went away, but then
came a different error.  The new error was:

c:/djgpp/lang/cxx/iostream.h(31) Error: streambuf.h:
No such file or directory.

so I went back to the mailing list. It reccomended
section 8.3 in the DJGPP FAQ list.  I thoroughly
followed all of the procedures that were recommended
in the section.  Nothing worked.  So I switched LFN=n
again--nothing.  I decided LFN=y would probably be my
best bet, so I changed back to LFN=y and restarted my
computer.
  This time something different happended, I received
a different error message.  The error is:

Error: c/djgpp/bin/ld.exe: cannot find -lstdcxx
Error: collect2: ld returned 1 exit status
There were some errors.

In all my searching for help I have never came across
a similar problem.  That is why I decided it was time
to email somebody.  I have used the same program,
which I displayed previously, and received all of
these different error messages.  What did I do to get
the last error message?  I honestly did nothing
different besides entering some commands at the DOS
prompt that I saw in one of the help files that were
something like "gxx -v -o file file.o ???"--I forget
exactly what it was; then I switched between LFN=n and
LFN=y a few times and some how lost the "streambuf.h"
error and received the latter.
  Please email me back with some help.  The new error
message has me completely puzzled.  I provided some
information below I hope that it helps.  Thank You.

email: m4mooney AT yahoo DOT com

go32-v2 output: go32/v2 version 2.0 built Dec 24  1999
17:46:57
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that
can run v2 binaries as well as v1 binaries (old
makefiles). Put ahead of the old go32 in your PATH but
do not delete your old go32 - leave it in the PATH
after this one.  Set GO32_V2_DEBUG=y in the
environment to get verbose output.
DPMI memory available: 383391 kb
DPMI swap space available: 137629 kb

gcc -v output:
 Reading specs from
c:/djgpp/lib/gcc-lib/djgpp/2.952/specs gcc version
2.95.2 19991024 (release)

autoexec.bat:
@if exist c:\checkmbr.exe c:\checkmbr quiet (Validate
MBR, not a TSR)
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET windir=C:\WINDOWS
SET winbootdir=C:\WINDOWS
SET TEMP=C:\WINDOWS\TEMP
SET TMP=C:\WINDOWS\TEMP
SET LFN=y
SET PROMPT=$p$g
SET DJGPPTMP=c:
SET DJGPPRUN=c:
SET DJGPP=c:\DJGPP\DJGPP.ENV
SET PATH=c:\DJGPP\BIN;c:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\DELL\RESOLU~1\COMMON\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\DELL\RESOLU~1\COMMON\BIN;

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019