This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
gcc library
- To: <cygwin@sourceware.cygnus.com>
- Subject: gcc library
- From: "Wei Xu" <weixuz@yesic.com>
- Date: Wed, 7 Jul 1999 10:15:46 -0400
Dear all,
I an new to this software. I have download the full verions of Cygwin. When
I try to testing the =
gcc with the following C++ code:
#include <iostream.h>
int main (int argc, char **argv)
{
cout << "Hello world\n";
printf("Hello world\n");
}
It says:
try.cc: In function `int main(int, char **)':
try.cc:6: warning: implicit declaration of function `int printf(...)'
C:\WINDOWS\TEMP\ccz14xFI.o(.text+0x1e):try.cc: undefined reference to =
`cout'
C:\WINDOWS\TEMP\ccz14xFI.o(.text+0x23):try.cc: undefined reference to =
`ostream::
operator<<(char const *)'
collect2: ld returned 1 exit status
I can figure out what is wrong with my installation or library?=20
Here is my set:
BASH_VERSION=3D'2.02.1(2)-release'
BLASTER=3D'A220 I2 D3 H7 P330 T6'
CMDLINE=3Dbash
COMSPEC=3D'C:\COMMAND.COM'
CTSYN=3D'C:\WINDOWS'
DIRSTACK=3D()
EUID=3D500
GROUPS=3D()
HISTFILE=3D/.bash_history
HISTFILESIZE=3D500
HISTSIZE=3D500
HOSTNAME=3DXu
HOSTTYPE=3Di586
IFS=3D'
'
INCLUDE=3D'C:\MICROS~1\VC98\ATL\INCLUDE;C:\MICROS~1\VC98\INCLUDE;C:\MICRO=
S~1\VC98\
MFC\INCLUDE;'
LIB=3D'C:\MICROS~1\VC98\LIB;C:\MICROS~1\VC98\MFC\LIB;'
MACHTYPE=3Di586-pc-cygwin32
MAILCHECK=3D60
MAKE_MODE=3DUNIX
MSDEVDIR=3D'C:\MICROS~1\COMMON\msdev98'
MSVCDIR=3D'C:\MICROS~1\VC98'
OLDPWD=3D/
OPTERR=3D1
OPTIND=3D1
OSTYPE=3Dcygwin32
PATH=3D/CYGNUS/CYGWIN~1/H-I586~1/BIN:/MICROS~1/COMMON/MSDEV98/BIN:/MICROS=
~1/VC98/B
IN:/MICROS~1/COMMON/TOOLS/WIN98:/MICROS~1/COMMON/TOOLS:/SYSTEM:/PROGRA~1/=
TEXMF/M
IKTEX/BIN:/WINDOWS:/WINDOWS/COMMAND:/PROGRA~1/BIN:/PROGRA~1/JDK1.2/BIN:/M=
ICROS~1
/COMMON/MSDEV98/BIN
PIPESTATUS=3D([0]=3D"1")
PPID=3D1000
PROMPT=3D'$p$g'
PS1=3D'\s-\v\$ '
PS2=3D'> '
PS4=3D'+ '
PWD=3D/Tmp
SHELL=3D/bin/sh
SHELLOPTS=3Dbraceexpand:hashall:histexpand:monitor:history:interactive-co=
mments:em
acs
SHLVL=3D1
TEMP=3D'C:\WINDOWS\TEMP'
TERM=3Dcygwin
TMP=3D'C:\WINDOWS\TEMP'
UID=3D500
WINBOOTDIR=3D'C:\WINDOWS'
WINDIR=3D'C:\WINDOWS'
_=3Dtry.cc
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com