delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/19/03:18:51

From: "Michael Buckley" <mbuckley AT iocc DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Having trouble compiling C++ programs and I've read the DOCS and FAQ and previous posts
Date: Thu, 19 Aug 1999 00:22:04 -0500
Organization: Posted via Supernews, http://www.supernews.com
Lines: 29
Message-ID: <rrn524sgboh15@corp.supernews.com>
X-Complaints-To: newsabuse AT supernews DOT com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Greetings,
My problem is that whenever I try to link C++ program, I get the following
error message:
Error: c:\djgpp\bin\ld.exe: cannot open -lstdcx: No such file or directory
(ENOENT)
Error: collect2: ld returned 1 exit status

I'm pretty sure that I've declared the correct environment paths in
autoexec.bat because I
can run anything in the c:\djgpp\bin directory from anywhere and I can
compile and link
C programs with no problem. I checked djgpp.env and the LFN parameter is set
to y.
If you want me to send a copy of my autoexec.bat file I will.  The program
I'm trying to
make is simply a hello world type program. iostream.h is present in the
lang\cxx dir.
I've honestly tried my best to fix this on my own by pouring over the FAQs,
documentation,
and previous posts, but none of those seemed to help any.  Or at least I
just don't understand
them.  I'm using Windows 95 installed over MS DOS 6.22 and  version 2.95 of
the GNU
ports. I'm also using version 2.03 of DJGPP.  If you need more specific info
I'll be happy to
provide it.



- Raw text -


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