delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/25/18:25:20

From: abhicomp AT netscape DOT net
Newsgroups: comp.os.msdos.djgpp
Subject: Help, C++ link error!!
Date: Fri, 25 Dec 1998 23:12:12 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 52
Message-ID: <76164c$bbs$1@nnrp1.dejanews.com>
NNTP-Posting-Host: 209.136.1.229
X-Article-Creation-Date: Fri Dec 25 23:12:12 1998 GMT
X-Http-User-Agent: Mozilla/4.5 [en] (Win95; I)
X-Http-Proxy: 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 209.136.1.229
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,  I'm a new user of the djgpp and only recently downloaded the compiler. 
When I tried to compile a simple C++ program: #include <iostream.h> int
main() {  int a, b, prod;  cout << "Multiplication program\n";	cout <<
"Enter the first number: ";  cin >> a;	cout << "\nEnter the second number:
";  cin >> b;  prod = a * b;  cout << "\nThe product is: " << prod << endl; 
exit (prod); } using RHIDE, it compiled without any errors, but when it was
linking and creating the *.exe file, the linking stopped suddenly and the
message window had this message: 'Error: e:/djgpp/bin/ld.exe: cannot open
-lstdcx: No such file of directory (EN0ENT)'

I thought that there was something wrong with the ld.exe and since I searched
the docs and was not able to find anything that could help me and I posted
this message.

Here's the information as requested in the documentation:

ENVIRON.LST: TMP=C:\WINDOWS\TEMP winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM WINPMT=$P$G DIRCMD=/O TEMP=C:\PBTOOLS\WINTEMP
PROMPT=[WINDOWS] $P$G GALAXY=A220 I5 D1 K10 P530 T6 SOUND=C:\SOUND144
PATH=E:\DJGPP\BIN;E:\CENTURA;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\PROGRA~1\BO
RLA ND\CBUILDER\BIN;E:\DJGPP\BIN; DJGPP=E:\DJGPP\DJGPP.ENV windir=C:\WINDOWS
BLASTER=A240 I10 D3

go32-v2 reported:
DPMI memory available: 10467 Kb
DPMI swap space available: 2661 Kb

Autoexec.bat: @ECHO OFF C:\SOUND144\UTILITY\AZCAL.EXE PROMPT $P$G SET
PATH=E:\CENTURA;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\PROGRA~1\BORLAND\CBUILDE
R\B IN; rem - By Windows Setup - LH C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD0001
/M:20 /S SET DIRCMD=/O SET TEMP=C:\PBTOOLS\WINTEMP SET WINPMT=[WINDOWS] $P$G
SET BLASTER=A220 I5 D1 T4 SET GALAXY=A220 I5 D1 K10 P530 T6 SET
SOUND=C:\SOUND144 set
PATH=E:\DJGPP\BIN;E:\CENTURA;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\PROGRA~1\BO
RLA ND\CBUILDER\BIN;E:\DJGPP\BIN; SET DJGPP=E:\DJGPP\DJGPP.ENV

config.sys:
DEVICE=C:\WINDOWS\HIMEM.SYS
DOS=HIGH,UMB
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS I=B000-B7FF
FILESHIGH=30
BUFFERSHIGH=20
STACKSHIGH=0,0
FCBSHIGH=1
DEVICEHIGH=C:\WINDOWS\MOUSE.SYS
DEVICEHIGH=C:\PBTOOLS\GSCDROM.SYS /D:MSCD0001

You can contact me at the above e-mail address if you need any more
information that I can provide. -- jHeNtRaToR

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

- Raw text -


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