X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Harry J.Smith" Newsgroups: comp.os.msdos.djgpp Subject: I cannot compile the simplest program Lines: 103 Organization: Self-employed MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: <3WBUf.4318$tN3.1538@newssvr27.news.prodigy.net> NNTP-Posting-Host: 69.224.17.181 X-Complaints-To: abuse AT prodigy DOT net X-Trace: newssvr27.news.prodigy.net 1143139071 ST000 69.224.17.181 (Thu, 23 Mar 2006 13:37:51 EST) NNTP-Posting-Date: Thu, 23 Mar 2006 13:37:51 EST X-UserInfo1: [[PAPDON]RTUSPLXZBITOFXBWR\HPCTL AT XT^OBPLAH[\RZ]CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C AT RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW AT C[AFKBBQS AT E@DAZ]VDFUNTQQ]FN Date: Thu, 23 Mar 2006 18:37:51 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I installed djgpp but I cannot compile the simplest program: #include int main(void) { cout << "Hello World\n"; return 0; } I installed the 8 *.zip files: bnu2161b.zip djdev203.zip faq230b.zip gcc410b.zip gpp410b.zip mak3791b.zip rhid15ab.zip txi48b.zip Into C:\ProgramD\DJGPP\ Here is what I get: C:\ProgramD\DJGPP\Harry\Test>gpp -o test.exe test.cpp test.cpp: In function 'int main()': test.cpp:4: error: 'cout' was not declared in this scope C:\ProgramD\DJGPP\Harry\Test>set > environ.txt C:\ProgramD\DJGPP\Harry\Test>go32-v2 go32/v2 version 2.0 built Dec 24 2001 21:25: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 but do not delete your old go32 - leave it in the PATH after this one. Set GO32_V2_DEBUG=y in the environment to get verbose output. DPMI memory available: 1482623 Kb DPMI swap space available: 0 Kb C:\ProgramD\DJGPP\Harry\Test> The environ.txt file looks like this: ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\Harry Smith\Application Data CLASSPATH=C:\Program Files\Java\jre1.5.0_05\lib\ext\QTJava.zip CLIENTNAME=Console CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=DGV4T641 ComSpec=C:\WINDOWS\system32\cmd.exe DJGPP=C:\ProgramD\DJGPP\djgpp.env DXSDK_DIR=C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\ FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Documents and Settings\Harry Smith INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\ LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\ LOGONSERVER=\\DGV4T641 NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\ProgramD\DJGPP\BIN\;C:\Utility\MiKTeX\Main\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\QuickTime\QTSystem\;;C:\BAT;C:\BIN PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0209 ProgramFiles=C:\Program Files PROMPT=$P$G QTJAVA=C:\Program Files\Java\jre1.5.0_05\lib\ext\QTJava.zip RoxioCentral=C:\Program Files\Common Files\Roxio Shared\Roxio Central\ SESSIONNAME=Console SYSTEM=Harry's Intel 3 GHz Pentium 4 - Dell DGV4T641 - Windows XP Pro SP2 SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\HARRYS~1\LOCALS~1\Temp TMP=C:\DOCUME~1\HARRYS~1\LOCALS~1\Temp tvdumpflags=8 USERDOMAIN=DGV4T641 USERNAME=Harry Smith USERPROFILE=C:\Documents and Settings\Harry Smith VCToolkitInstallDir=C:\Program Files\Microsoft Visual C++ Toolkit 2003\ VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\ windir=C:\WINDOWS __COMPAT_LAYER=EnableNXShowUI -Harry -- | Harry J. Smith, 19628 Via Monte Dr., Saratoga, CA 95070-4522, USA | Home Phone: 1 408 741-0406 | E-mail: hjsmithh AT sbcglobal DOT net | Website: http://www.geocities.com/hjsmithh/ --