Mail Archives: djgpp/1998/03/16/14:46:42
From: | "Nathan Cournia" <lcournia AT ecsis DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | undefined reference to...
|
Date: | 16 Mar 1998 19:39:43 GMT
|
Organization: | Electronic Communication Systems; Dyersburg TN 38024
|
Lines: | 65
|
Message-ID: | <01bd5112$e22b6d80$940c9ace@frank.mtsu.edu.frank.mtsu.edu>
|
Reply-To: | "Nathan Cournia" <nac2b AT frank DOT mtsu DOT edu>
|
NNTP-Posting-Host: | annex3-20.ecsis.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm a newbie to DJGPP and I'm having some, er, a problem: nothing
compiles. I downloaded these files and unzipped them in the following
order.
C:\DJGPP> pkunzip -d d:\tmp\djdev201.zip
C:\DJGPP> pkunzip -d d:\tmp\faq210b.zip
C:\DJGPP> pkunzip -d d:\tmp\bnu281b.zip
C:\DJGPP> pkunzip -d d:\tmp\gcc280b.zip
C:\DJGPP> pkunzip -d d:\tmp\gpp280b.zip
C:\DJGPP> pkunzip -d d:\tmp\lgpp280b.zip
C:\DJGPP> pkunzip -d d:\tmp\mak3761b.zip
C:\DJGPP> pkunzip -d d:\tmp\txi390b.zip
C:\DJGPP> pkunzip -d d:\tmp\csdpmi4b.zip
Please note that some files were overwritten.
I then added statements to my autoexec.bat. Here is my autoexec.bat:
C:\PROGRA~1\MCAFEE\VIRUSS~1\SCANPM.EXE C:\
@IF ERRORLEVEL 1 PAUSE
SET SOUND=C:\PROGRA~1\CREATIVE\CTSND
SET MIDI=SYNTH:1 MAP:E MODE:0
SET BLASTER=A220 I5 D1 H5 P330 E620 T6
SET PATH=C:\DJGPP\BIN;%PATH%
SET DJGPP=C:\DJGPP\DJGPP.ENV
I then compiled the following program with the following statement:
c:\test>gcc test1.cc -otest1.exe
**************************
#include <iostream.h>
main()
{
cout << "Hello World!" << endl;
}
**************************
The following errors occured:
c:/djgpp/tmp/ccaaaaaa1.o(.text+0x14):test1.cc: undefined reference to
`endl(ostream &)'
c:/djgpp/tmp/ccaaaaaa1.o(.text+0x1e):test1.cc: undefined reference to
`cout'
c:/djgpp/tmp/ccaaaaaa1.o(.text+0x23):test1.cc: undefined reference to
`ostream::operator<<(char const *)'
c:/djgpp/tmp/ccaaaaaa1.o(.text+0x2e):test1.cc: undefined reference to
`ostream::operator<<(ostream &(*)(ostream &))'
I also tried compiling the file with this command line:
c:\test>gcc test1.cc -otest1.exe -liostr
This produced the following:
c:/djgpp/bin/ld.exe: cannot open -liostr: No such file or directory
(ENOENT)
I would greatly appreciate any help anybody can give. Thankk you for your
time.
Nathan Cournia
nac2b AT frank DOT mtsu DOT edu
- Raw text -