www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/23/01:14:44

Subject: Compile question need help
To: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001
Message-ID: <OF834D9B91.3A99CC1B-ON48256CB7.00212DEB@com.tw>
From: jeendarh AT admtek DOT com DOT tw
Date: Thu, 23 Jan 2003 14:16:29 +0800
X-MIMETrack: Serialize by Router on mail/Admtek(Release 5.0.8 |June 18, 2001) at 2003/01/23
02:16:44 PM
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Dear,
  I try to read FAQ but it can not solve my question.  I collect some
information to you for help......

   I got compile error as:
-----------------------------------------------------------------------------
C:\djgpp>gcc -v -c l1.cpp -o l1.exe
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.21/specs
Configured with: /devel/gnu/gcc/3.2/gnu/gcc-3.21/configure
i586-pc-msdosdjgpp --
prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.2.1
c:/djgpp/lib/gcc-lib/djgpp/3.21/cc1plus.exe -v -D__GNUC__=3
-D__GNUC_MINOR__=2
-D__GNUC_PATCHLEVEL__=1 -D__GXX_ABI_VERSION=102 -D__MSDOS__ -D__GO32__
-D__DJGPP
__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__
-Asystem=msdos -
Asystem=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386
-Di38
6 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32
-DDJGPP=
2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.21/djgpp.ver l1.cpp
-D__GN
UG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase l1.cpp -version -o
c:/djgp
p/tmp/ccutoHd6.s
GNU CPP version 3.2.1 (cpplib) (80386, BSD syntax)
GNU C++ version 3.2.1 (djgpp)
compiled by GNU C version 3.2.1.
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lang/cxx/3.21
c:/djgpp/lang/cxx/3.21/djgpp
c:/djgpp/lang/cxx/3.21/backward
c:/djgpp/lib/gcc-lib/djgpp/3.21/include
c:/djgpp/djgpp/include
c:/djgpp/include
End of search list.
l1.cpp: In function `int main()':
l1.cpp:5: `cout' undeclared (first use this function)
l1.cpp:5: (Each undeclared identifier is reported only once for each
function
it appears in.)
-----------------------------------------------------------------------------



Environment setting as:
-----------------------------------------------------------------------------
Environment setting:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\jeendarh\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=JEENDARH
ComSpec=C:\WINNT\system32\cmd.exe
djgpp=c:\djgpp\djgpp.env
HOMEDRIVE=I:
HOMEPATH=\
HOMESHARE=\\admfile\jeendarh
LOGONSERVER=\\ADMPRINT
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Hummingbird\Connectivity\8.00\Accessories\;C:\DJGPP\BIN;c:\djgpp\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0207
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\jeendarh\LOCALS~1\Temp
TMP=C:\DOCUME~1\jeendarh\LOCALS~1\Temp
USERDNSDOMAIN=admtek.com.tw
USERDOMAIN=NET
USERNAME=jeendarh
USERPROFILE=C:\Documents and Settings\jeendarh
windir=C:\WINNT
-----------------------------------------------------------------------------



DJGPP.ENV as:
-----------------------------------------------------------------------------
#= Don't edit this line unless you move djgpp.env outside
#= of the djgpp installation directory.  If you do move
#= it, set DJDIR to the directory you installed DJGPP in.
#=
DJDIR=%:/>DJGPP%

+USER=dosuser
+GROUP=root
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+LFN=y
+TEXMFMAIN=%DJDIR%/share/texmf
+GO32STUB=%DJDIR%/bin/stubify.exe

[bison]
+BISON_HAIRY=%DJDIR%/lib/bison.hai
+BISON_SIMPLE=%DJDIR%/lib/bison.sim

[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
OBJCPLUS_INCLUDE_PATH
=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc

[gcc]
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib

[info]
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
+INFO_COLORS=0x1f.0x31
+INFO_LINES=40

[emacs]
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info

[less]
+LESSBINFMT=*k<%%X>
+LESSCHARDEF=8bcccbcc12bc5b95.b127.b
LESS=-h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$%LESS%
+LESSSEPARATOR=/

[ispell]
+ISPELL_HOME=%DJDIR%/lib
+ISPELL_DICTDIR=%DJDIR%/lib
+ISPELL_COLORS=0x1e.0x74
+LINES=40

[locate]
+LOCATE_PATH=%DJDIR%/lib/locatedb.dat

[ls]
+LS_COLORS=no=00:fi=00:di=36:ln=01;36:lb=37;07:cd=40;33;01:or=41;37;01:ex=32:

.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:
*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:
*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:
*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[dir]
+LS_COLORS=no=00:fi=00:di=36:ln=01;36:lb=37;07:cd=40;33;01:or=41;37;01:ex=32:

.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:
*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:
*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:
*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[vdir]
+LS_COLORS=no=00:fi=00:di=36:ln=01;36:lb=37;07:cd=40;33;01:or=41;37;01:ex=32:

.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:
*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:
*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:
*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:

[enscript]
+ENSCRIPT_LIBRARY=%DJDIR%/share/enscript

[bash]
PATH=%/>PATH%
+CONFIG_SITE=%DJDIR%/share/config.site

[sh]
PATH=%/>PATH%
+CONFIG_SITE=%DJDIR%/share/config.site

[groff]
+GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac
+GROFF_TYPESETTER=ascii
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[eqn]
+GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac
+GROFF_TYPESETTER=ascii

[grodvi]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[grolj4]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[grops]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font
+GROFF_TMPDIR=%DJDIR%/tmp

[grotty]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[indxbib]
+GROFF_EIGN=%DJDIR%/share/groff/eign

[lkbib]
+REFER=%DJDIR%/share/Ind

[refer]
+REFER=%DJDIR%/share/Ind
+GROFF_TMPDIR=%TMPDIR%

[troff]
+GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac
+GROFF_TYPESETTER=ascii
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[gawk]
+AWKPATH=.;%DJDIR%/share/awk

[awk]
+AWKPATH=.;%DJDIR%/share/awk

[man]
MANPATH=%/>;MANPATH%%DJDIR%/man;%DJDIR%/info
+PAGER=%DJDIR%/bin/less.exe

[rhide]
+RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx m
+RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx m
+RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx m
+RHIDE_TYPED_LIBS.f=g2c m

[grep]
+GREP_OPTIONS=--directories=skip

[fgrep]
+GREP_OPTIONS=--directories=skip

[egrep]
+GREP_OPTIONS=--directories=skip
-----------------------------------------------------------------------------



go32-v2 output as:
-----------------------------------------------------------------------------
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: 41418 Kb
DPMI swap space available: 0 Kb
-----------------------------------------------------------------------------



C++ code as:
-----------------------------------------------------------------------------
#include <iostream>

int main()
{
   cout << "Hello World!\n";
   return 0;
}
-----------------------------------------------------------------------------


  And I use system: OS is "windows 2000", and hardware is IBM NETVISTA
which
has P4 1.8G CPU and 128M DDR RAM.

  Another, I find a strange thing.  When I re-open "command tool" and
re-key some commands as gpp, gcc,.. etc.  The command tool is not any
response, but I execute rhide.exe then exit to return command tool.  The
command tool recover anything, I can execute all commands well.

  Please give me a hand.

Thank your support,
Jeen_dar Huang, 01/23/2003


- Raw text -


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