From: "Wei Xu" <weixuz@yesic.com>
To: <cygwin@sourceware.cygnus.com>
Subject: gcc library
Date: Wed, 07 Jul 1999 07:16:00 -0000 [thread overview]
Message-ID: <003901bec883$34bc9e00$c3dba1d1@Xu.toronto.vr1.com> (raw)
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
WARNING: multiple messages have this Message-ID
From: "Wei Xu" <weixuz@yesic.com>
To: <cygwin@sourceware.cygnus.com>
Subject: gcc library
Date: Sat, 31 Jul 1999 18:34:00 -0000 [thread overview]
Message-ID: <003901bec883$34bc9e00$c3dba1d1@Xu.toronto.vr1.com> (raw)
Message-ID: <19990731183400.X6CKB64z2CyY4CSu8nKF009-oN3JPj4iWVBWFDsLpIw@z> (raw)
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
next reply other threads:[~1999-07-07 7:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-07 7:16 Wei Xu [this message]
1999-07-07 7:41 ` Jonathan Pryor
1999-07-31 18:34 ` Jonathan Pryor
1999-07-07 7:47 ` Raju K. V.
1999-07-31 18:34 ` Raju K. V.
1999-07-31 18:34 ` Wei Xu
1999-07-07 7:54 Thomas Pfaff
1999-07-31 18:34 ` Thomas Pfaff
1999-07-07 7:55 Wei Xu
1999-07-31 18:34 ` Wei Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003901bec883$34bc9e00$c3dba1d1@Xu.toronto.vr1.com' \
--to=weixuz@yesic.com \
--cc=cygwin@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).