Mail Archives: djgpp/1999/03/23/05:01:05
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 <iostream.h>
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-2 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>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....</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>mind_master<BR><A=20
href=3D"mailto:mindm AT wshe DOT lodz DOT pl">mindm AT wshe DOT lodz DOT pl</A></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>ps. that's info you want me to get =
(from manual=20
chapt. 6.12)</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Source code:<BR>#include=20
<iostream.h><BR>int main()<BR>{<BR> int x =3D =
5;<BR> =20
cout << "That prints " << x << =
endl;<BR> =20
return 0;<BR>}</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>C:\UZYTKI\djgpp\!MM>set >=20
environ.lst<BR>TMP=3DC:\WINDOWS\TEMP<BR>TEMP=3DC:\WINDOWS\TEMP<BR>PROMPT=3D=
$p$g<BR>winbootdir=3DC:\WINDOWS<BR>COMSPEC=3DC:\WINDOWS\COMMAND.COM<BR>SO=
UND=3DC:\PROGRA~1\CREATIVE\CTSND<BR>MIDI=3DSYNTH:1=20
MAP:E=20
MODE:0<BR>DJGPP=3DC:\UZYTKI\DJGPP\DJGPP.ENV<BR>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<BR>windir=3DC:\WINDOWS<BR>BLASTER=3D=
A220=20
I5 D1 H5 P330 T6 E620</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 =
size=3D2>C:\UZYTKI\djgpp\!MM>go32-v2<BR>go32/v2=20
version 2.0 built Jan 23 1996 22:03:02<BR>Usage: go32 coff-image=20
[args]<BR>Rename this to go32.exe only if you need a go32 that can run =
v2=20
binaries as<BR> well as v1 binaries (old makefiles). Put =
ahead of the=20
old go32 in your PATH.<BR>DPMI memory available: 14512 Kb<BR>DPMI swap =
space=20
available: 15324 Kb</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>C:\UZYTKI\djgpp\!MM>gcc zad1.cc =
-v<BR>Reading=20
specs from c:/uzytki/djgpp/lib\specs<BR>gcc version=20
2.7.2<BR> c:/uzytki/djgpp/bin\cpp.exe -lang-c++ -v -undef =
-D__GNUC__=3D2=20
-D__GNUG__=3D2 -D__c<BR>plusplus -D__GNUC_MINOR__=3D7 -Dunix -Di386 =
-DGO32 -DMSDOS=20
-DDJGPP=3D2 -DDJGPP_MINOR<BR>=3D0 -D__unix__ -D__i386__ -D__GO32__ =
-D__MSDOS__=20
-D__DJGPP__=3D2 -D__DJGPP_MINOR__=3D<BR>0 -D__unix -D__i386 -D__GO32 =
-D__MSDOS=20
-D__DJGPP=3D2 -D__DJGPP_MINOR=3D0 zad1.cc =
c:/<BR>uzytki/djgpp/tmp\ccbaaaaa<BR>GNU=20
CPP version 2.7.2 (80386, BSD syntax)<BR>#include "..." search =
starts=20
here:<BR>#include <...> search starts=20
here:<BR> c:/uzytki/djgpp/lang/cxx<BR> c:/uzytki/djgpp/include<=
BR> c:/uzytki/djgpp/contrib/grx20/include<BR> /usr/local/lib/g+=
+-include<BR> /usr/local/include<BR> /usr/local/go32/include<BR=
> /usr/local/lib/gcc-lib/go32/2.7.2/include<BR> /usr/include<BR=
>End=20
of search list.<BR> c:/uzytki/djgpp/bin\cc1plus.exe=20
c:/uzytki/djgpp/tmp\ccbaaaaa -fno-strength-redu<BR>ce =
-fno-strength-reduce=20
-quiet -dumpbase zad1.cc -version -o =
c:/uzytki/djgpp/tmp<BR>\cccaaaaa<BR>GNU C++=20
version 2.7.2 (80386, BSD syntax) compiled by GNU C version=20
2.7.2.<BR> c:/uzytki/djgpp/bin\as.exe -o =
c:/uzytki/djgpp/tmp\ccdaaaaa=20
c:/uzytki/djgpp/tmp\<BR>cccaaaaa<BR> c:/uzytki/djgpp/bin\ld.exe=20
c:/uzytki/djgpp/lib\crt0.o -Lc:/uzytki/djgpp/lib=20
c:/<BR>uzytki/djgpp/tmp\ccdaaaaa -Tdjgpp.lnk -lgcc -lc=20
-lgcc<BR>zad1.cc(.text+0x29): undefined reference to `endl(ostream=20
&)'<BR>zad1.cc(.text+0x37): undefined reference to=20
`cout'<BR>zad1.cc(.text+0x3c): undefined reference to=20
`ostream::operator<<(char const *)'<BR>zad1.cc(.text+0x47): =
undefined=20
reference to `ostream::operator<<(int)'<BR>zad1.cc(.text+0x52): =
undefined=20
reference to `ostream::operator<<(ostream &(*)(os<BR>tream=20
&))'</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>AUTOEXEC.BAT contest:<BR>@echo=20
off<BR>c:\uzytki\dimens~1\rdosumb\upload.com /d<BR>mode con codepage=20
prepare=3D((852) C:\WINDOWS\COMMAND\ega.cpi)<BR>mode con codepage =
select=3D852<BR>lh=20
keyb pl,,C:\WINDOWS\COMMAND\keybrd4.sys<BR>SET=20
SOUND=3DC:\PROGRA~1\CREATIVE\CTSND<BR>SET MIDI=3DSYNTH:1 MAP:E =
MODE:0<BR>SET=20
BLASTER=3DA220 I5 D1 H5 P330 E620 T6 <BR>lh C:\PROGRA~1\SDD\UNIVBE32.EXE =
-w<BR>PATH=20
C:\WINDOWS;C:\WINDOWS\COMMAND;C:\VC;C:\UZYTKI\PAKERY;C:\UZYTKI\PAKERY\WIN=
RAR;C:\UZYTKI\ASM<BR>PATH=3DC:\UZYTKI\BC5\BIN;%PATH%</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>set =
DJGPP=3DC:\UZYTKI\DJGPP\DJGPP.ENV<BR>set=20
PATH=3DC:\UZYTKI\DJGPP\BIN;%PATH%</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>CONFIG.SYS contest:<BR>switches=20
/f<BR>FCBS=3D1,0<BR>DEVICE=3DC:\UZYTKI\DIMENS~1\RDOSUMB\RDOSUMB.COM *=20
#1D<BR>INSTALL=3DC:\UZYTKI\DIMENS~1\RDOSUMB\UPLOAD.COM=20
/E<BR>DOS=3DUMB,HIGH<BR>DEVICEHIGH=3DC:\WINDOWS\HIMEM.SYS=20
/testmem:off<BR>BUFFERS=3D80<BR>FILES=3D80<BR>devicehigh=3DC:\WINDOWS\COM=
MAND\display.sys=20
con=3D(ega,,1)<BR>Country=3D048,852,C:\WINDOWS\COMMAND\country.sys<BR></F=
ONT></DIV></BODY></HTML>
------=_NextPart_000_0005_01BE7518.F0FF9860--
- Raw text -