Message-ID: <000801be7510$8f6d8b00$0202a8c0@101.wshe.lodz.pl> From: "mm" To: Subject: help Date: Tue, 23 Mar 1999 10:35:59 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01BE7518.F0FF9860" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0005_01BE7518.F0FF9860 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hi, i am new in DJGPP and C/C++ programming, i know nothing (or very = little) about it and i don't underestand why so simple source cannot be = compiled??? I had to make an instalation errors probably because it's = simplest source ever. I get it from c++ book i learn with, how can i = learn when so simple source will not compile? Please help.... mind_master mindm AT wshe DOT lodz DOT pl ps. that's info you want me to get (from manual chapt. 6.12) Source code: #include int main() { int x =3D 5; cout << "That prints " << x << endl; return 0; } C:\UZYTKI\djgpp\!MM>set > environ.lst TMP=3DC:\WINDOWS\TEMP TEMP=3DC:\WINDOWS\TEMP PROMPT=3D$p$g winbootdir=3DC:\WINDOWS COMSPEC=3DC:\WINDOWS\COMMAND.COM SOUND=3DC:\PROGRA~1\CREATIVE\CTSND MIDI=3DSYNTH:1 MAP:E MODE:0 DJGPP=3DC:\UZYTKI\DJGPP\DJGPP.ENV PATH=3DC:\UZYTKI\DJGPP\BIN;C:\UZYTKI\BC5\BIN;C:\WINDOWS;C:\WINDOWS\COMMAN= D;C:\VC;C:\UZYTKI\PAKERY;C:\UZYTKI\PAKERY\WINRAR;C:\UZYTKI\ASM windir=3DC:\WINDOWS BLASTER=3DA220 I5 D1 H5 P330 T6 E620 C:\UZYTKI\djgpp\!MM>go32-v2 go32/v2 version 2.0 built Jan 23 1996 22:03:02 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. DPMI memory available: 14512 Kb DPMI swap space available: 15324 Kb C:\UZYTKI\djgpp\!MM>gcc zad1.cc -v Reading specs from c:/uzytki/djgpp/lib\specs gcc version 2.7.2 c:/uzytki/djgpp/bin\cpp.exe -lang-c++ -v -undef -D__GNUC__=3D2 = -D__GNUG__=3D2 -D__c plusplus -D__GNUC_MINOR__=3D7 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=3D2 = -DDJGPP_MINOR =3D0 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=3D2 = -D__DJGPP_MINOR__=3D 0 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=3D2 -D__DJGPP_MINOR=3D0 = zad1.cc c:/ uzytki/djgpp/tmp\ccbaaaaa GNU CPP version 2.7.2 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/uzytki/djgpp/lang/cxx c:/uzytki/djgpp/include c:/uzytki/djgpp/contrib/grx20/include /usr/local/lib/g++-include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2/include /usr/include End of search list. c:/uzytki/djgpp/bin\cc1plus.exe c:/uzytki/djgpp/tmp\ccbaaaaa = -fno-strength-redu ce -fno-strength-reduce -quiet -dumpbase zad1.cc -version -o = c:/uzytki/djgpp/tmp \cccaaaaa GNU C++ version 2.7.2 (80386, BSD syntax) compiled by GNU C version = 2.7.2. c:/uzytki/djgpp/bin\as.exe -o c:/uzytki/djgpp/tmp\ccdaaaaa = c:/uzytki/djgpp/tmp\ cccaaaaa c:/uzytki/djgpp/bin\ld.exe c:/uzytki/djgpp/lib\crt0.o = -Lc:/uzytki/djgpp/lib c:/ uzytki/djgpp/tmp\ccdaaaaa -Tdjgpp.lnk -lgcc -lc -lgcc zad1.cc(.text+0x29): undefined reference to `endl(ostream &)' zad1.cc(.text+0x37): undefined reference to `cout' zad1.cc(.text+0x3c): undefined reference to `ostream::operator<<(char = const *)' zad1.cc(.text+0x47): undefined reference to `ostream::operator<<(int)' zad1.cc(.text+0x52): undefined reference to `ostream::operator<<(ostream = &(*)(os tream &))' AUTOEXEC.BAT contest: @echo off c:\uzytki\dimens~1\rdosumb\upload.com /d mode con codepage prepare=3D((852) C:\WINDOWS\COMMAND\ega.cpi) mode con codepage select=3D852 lh keyb pl,,C:\WINDOWS\COMMAND\keybrd4.sys SET SOUND=3DC:\PROGRA~1\CREATIVE\CTSND SET MIDI=3DSYNTH:1 MAP:E MODE:0 SET BLASTER=3DA220 I5 D1 H5 P330 E620 T6=20 lh C:\PROGRA~1\SDD\UNIVBE32.EXE -w PATH = C:\WINDOWS;C:\WINDOWS\COMMAND;C:\VC;C:\UZYTKI\PAKERY;C:\UZYTKI\PAKERY\WIN= RAR;C:\UZYTKI\ASM PATH=3DC:\UZYTKI\BC5\BIN;%PATH% set DJGPP=3DC:\UZYTKI\DJGPP\DJGPP.ENV set PATH=3DC:\UZYTKI\DJGPP\BIN;%PATH% CONFIG.SYS contest: switches /f FCBS=3D1,0 DEVICE=3DC:\UZYTKI\DIMENS~1\RDOSUMB\RDOSUMB.COM * #1D INSTALL=3DC:\UZYTKI\DIMENS~1\RDOSUMB\UPLOAD.COM /E DOS=3DUMB,HIGH DEVICEHIGH=3DC:\WINDOWS\HIMEM.SYS /testmem:off BUFFERS=3D80 FILES=3D80 devicehigh=3DC:\WINDOWS\COMMAND\display.sys con=3D(ega,,1) Country=3D048,852,C:\WINDOWS\COMMAND\country.sys ------=_NextPart_000_0005_01BE7518.F0FF9860 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
Hi, i am new in DJGPP and C/C++ = programming, i=20 know nothing (or very little) about it and i don't underestand why so = simple=20 source cannot be compiled??? I had to make an instalation errors = probably=20 because it's simplest source ever. I get it from c++ book i learn with, = how can=20 i learn when so simple source will not compile? Please = help....
 
mind_master
mindm AT wshe DOT lodz DOT pl
 
ps. that's info you want me to get = (from manual=20 chapt. 6.12)
 
Source code:
#include=20 <iostream.h>
int main()
{
   int x =3D = 5;
  =20 cout << "That prints " << x << = endl;
  =20 return 0;
}
 
C:\UZYTKI\djgpp\!MM>set >=20 environ.lst
TMP=3DC:\WINDOWS\TEMP
TEMP=3DC:\WINDOWS\TEMP
PROMPT=3D= $p$g
winbootdir=3DC:\WINDOWS
COMSPEC=3DC:\WINDOWS\COMMAND.COM
SO= UND=3DC:\PROGRA~1\CREATIVE\CTSND
MIDI=3DSYNTH:1=20 MAP:E=20 MODE:0
DJGPP=3DC:\UZYTKI\DJGPP\DJGPP.ENV
PATH=3DC:\UZYTKI\DJGPP\BIN= ;C:\UZYTKI\BC5\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\VC;C:\UZYTKI\PAKERY;C= :\UZYTKI\PAKERY\WINRAR;C:\UZYTKI\ASM
windir=3DC:\WINDOWS
BLASTER=3D= A220=20 I5 D1 H5 P330 T6 E620
 
C:\UZYTKI\djgpp\!MM>go32-v2
go32/v2=20 version 2.0 built Jan 23 1996 22:03:02
Usage: go32 coff-image=20 [args]
Rename this to go32.exe only if you need a go32 that can run = v2=20 binaries as
 well as v1 binaries (old makefiles).  Put = ahead of the=20 old go32 in your PATH.
DPMI memory available: 14512 Kb
DPMI swap = space=20 available: 15324 Kb
 
C:\UZYTKI\djgpp\!MM>gcc zad1.cc = -v
Reading=20 specs from c:/uzytki/djgpp/lib\specs
gcc version=20 2.7.2
 c:/uzytki/djgpp/bin\cpp.exe -lang-c++ -v -undef = -D__GNUC__=3D2=20 -D__GNUG__=3D2 -D__c
plusplus -D__GNUC_MINOR__=3D7 -Dunix -Di386 = -DGO32 -DMSDOS=20 -DDJGPP=3D2 -DDJGPP_MINOR
=3D0 -D__unix__ -D__i386__ -D__GO32__ = -D__MSDOS__=20 -D__DJGPP__=3D2 -D__DJGPP_MINOR__=3D
0 -D__unix -D__i386 -D__GO32 = -D__MSDOS=20 -D__DJGPP=3D2 -D__DJGPP_MINOR=3D0 zad1.cc = c:/
uzytki/djgpp/tmp\ccbaaaaa
GNU=20 CPP version 2.7.2 (80386, BSD syntax)
#include "..." search = starts=20 here:
#include <...> search starts=20 here:
 c:/uzytki/djgpp/lang/cxx
 c:/uzytki/djgpp/include<= BR> c:/uzytki/djgpp/contrib/grx20/include
 /usr/local/lib/g+= +-include
 /usr/local/include
 /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2/include
 /usr/includeEnd=20 of search list.
 c:/uzytki/djgpp/bin\cc1plus.exe=20 c:/uzytki/djgpp/tmp\ccbaaaaa -fno-strength-redu
ce = -fno-strength-reduce=20 -quiet -dumpbase zad1.cc -version -o = c:/uzytki/djgpp/tmp
\cccaaaaa
GNU C++=20 version 2.7.2 (80386, BSD syntax) compiled by GNU C version=20 2.7.2.
 c:/uzytki/djgpp/bin\as.exe -o = c:/uzytki/djgpp/tmp\ccdaaaaa=20 c:/uzytki/djgpp/tmp\
cccaaaaa
 c:/uzytki/djgpp/bin\ld.exe=20 c:/uzytki/djgpp/lib\crt0.o -Lc:/uzytki/djgpp/lib=20 c:/
uzytki/djgpp/tmp\ccdaaaaa -Tdjgpp.lnk -lgcc -lc=20 -lgcc
zad1.cc(.text+0x29): undefined reference to `endl(ostream=20 &)'
zad1.cc(.text+0x37): undefined reference to=20 `cout'
zad1.cc(.text+0x3c): undefined reference to=20 `ostream::operator<<(char const *)'
zad1.cc(.text+0x47): = undefined=20 reference to `ostream::operator<<(int)'
zad1.cc(.text+0x52): = undefined=20 reference to `ostream::operator<<(ostream &(*)(os
tream=20 &))'
 
AUTOEXEC.BAT contest:
@echo=20 off
c:\uzytki\dimens~1\rdosumb\upload.com /d
mode con codepage=20 prepare=3D((852) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage = select=3D852
lh=20 keyb pl,,C:\WINDOWS\COMMAND\keybrd4.sys
SET=20 SOUND=3DC:\PROGRA~1\CREATIVE\CTSND
SET MIDI=3DSYNTH:1 MAP:E = MODE:0
SET=20 BLASTER=3DA220 I5 D1 H5 P330 E620 T6
lh C:\PROGRA~1\SDD\UNIVBE32.EXE = -w
PATH=20 C:\WINDOWS;C:\WINDOWS\COMMAND;C:\VC;C:\UZYTKI\PAKERY;C:\UZYTKI\PAKERY\WIN= RAR;C:\UZYTKI\ASM
PATH=3DC:\UZYTKI\BC5\BIN;%PATH%
 
set = DJGPP=3DC:\UZYTKI\DJGPP\DJGPP.ENV
set=20 PATH=3DC:\UZYTKI\DJGPP\BIN;%PATH%
 
CONFIG.SYS contest:
switches=20 /f
FCBS=3D1,0
DEVICE=3DC:\UZYTKI\DIMENS~1\RDOSUMB\RDOSUMB.COM *=20 #1D
INSTALL=3DC:\UZYTKI\DIMENS~1\RDOSUMB\UPLOAD.COM=20 /E
DOS=3DUMB,HIGH
DEVICEHIGH=3DC:\WINDOWS\HIMEM.SYS=20 /testmem:off
BUFFERS=3D80
FILES=3D80
devicehigh=3DC:\WINDOWS\COM= MAND\display.sys=20 con=3D(ega,,1)
Country=3D048,852,C:\WINDOWS\COMMAND\country.sys
------=_NextPart_000_0005_01BE7518.F0FF9860--