X-Originating-IP: [206.216.151.220] X-Originating-Email: [davidkobilnyk AT msn DOT com] From: "David Kobilnyk" To: Subject: Re: cout command Date: Mon, 11 Aug 2003 14:57:48 -0500 MIME-Version: 1.0 X-Mailer: MSN Explorer 7.02.0011.2700 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0000_01C36018.EDF8E820" Message-ID: X-OriginalArrivalTime: 11 Aug 2003 19:57:03.0049 (UTC) FILETIME=[BBBF4B90:01C36042] Reply-To: djgpp AT delorie DOT com ------=_NextPart_001_0000_01C36018.EDF8E820 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Hans-Bernhard Broeker, Thanks for replying. This is what I entered in DOS: chdir C:\My Programs gcc ideclare.o -o ideclare.exe And here's the errors: ideclare.o<.text+0x2b>: In function 'main': c:/DJGPP/bin/ideclare.cpp:16: undefined reference =20 to 'std::cout' =20 ideclare.o<.text+0x30>:c:/DJGPP/bin/ideclare.cpp:16: =20 undefined reference to 'std::basic_ostream >::operator<<' ideclare.o(.text+0x39):c:/DJGPP/bin/ideclare.cpp:16: =20 undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char)' ideclare.o(.text+0xe6): In function =20 `__static_initialization_and_destruction_0': c:/djgpp/lang/cxx/3.23/iostream:63: undefined reference to =20 `std::ios_base::Init::Init[in-charge]()' ideclare.o(.text+0x105):c:/djgpp/lang/cxx/3.23/iostream:63: =20 undefined reference to `std::ios_base::Init::~Init =20 [in-charge]()' ideclare.o(.eh_frame+0x11): In function `main': c:/DJGPP/bin/ideclare.cpp:12: undefined reference =20 to `___gxx_personality_v0' collect2: ld returned 1 exit status I hope the line length is better now. David Kobilnyk ----- Original Message ----- From: Hans-Bernhard Broeker Sent: Monday, August 11, 2003 1:28 PM To: djgpp AT delorie DOT com Subject: Re: cout command David Kobilnyk wrote: > I'm having trouble getting "cout" to work. The compiler tells me > there are no errors with my code; but when I try to turn the object > file into an executable file using DOS, I get a bunch of error > messages. Unfortunately your description is missing the single most important piece of information needed to help you: *how*, exactly, you did "try to turn the object file into an executable". The exact command line, and the exact error message, please. And make sure you re-read the "README.1st" file before you try again. [And can you please reduce your line length? The whole quoted paragraph above arrived here as a single line of text, which is a bad habit.] -- =20 Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.Get more from the Web= . FREE MSN Explorer download : http://explorer.msn.com ------=_NextPart_001_0000_01C36018.EDF8E820 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Hans-Bernha= rd Broeker,
 
 
Thanks for rep= lying. This is what I entered in DOS:
 
chdir = C:\My Programs
gcc ideclare.o -o ideclare.exe
 
=

And here's the errors:
 
ideclare.o&l= t;.text+0x2b>: In function 'main':
c:/DJGPP/bin/ideclare.cpp:16: un= defined reference
to 'std::cout'
ideclare.o<.text+0x30>:c:/= DJGPP/bin/ideclare.cpp:16:
undefined reference to 'std::basic_ostream= <char,
std::char_traits<char> >::operator<<<int&= gt;'
ideclare.o(.text+0x39):c:/DJGPP/bin/ideclare.cpp:16:
undefine= d reference to `std::basic_ostream<char,
std::char_traits<char&= gt; >& std::operator<< <std::char_trait
s<char> = >(std::basic_ostream<char,
std::char_traits<char> >&am= p;, char)'
ideclare.o(.text+0xe6): In function
`__static_initializ= ation_and_destruction_0':
c:/djgpp/lang/cxx/3.23/iostream:63: = undefined reference to
`std::ios_base::Init::Init[in-charge]()'
id= eclare.o(.text+0x105):c:/djgpp/lang/cxx/3.23/iostream:63:
undefined r= eference to `std::ios_base::Init::~Init
[in-charge]()'
ideclare.o(= .eh_frame+0x11): In function `main':
c:/DJGPP/bin/ideclare.cpp:12: und= efined reference
to `___gxx_personality_v0'
collect2: ld returned = 1 exit status
 
 
I hope the l= ine length is better now.
 
David Kobilny= k
 
 
 
----- Original Message -----
From: Hans-Bernhard Broeker
Sent: Monday, August 11, 2003 1:= 28 PM
To: djgpp AT delorie DOT com<= /DIV>
Subject: Re: cout command
 
David Kobilnyk <DavidKobilnyk AT msn DOT com> wrote:<= BR>
> I'm having trouble getting "cout" to work. The compiler tells= me
> there are no errors with my code; but when I try to turn the = object
> file into an executable file using DOS, I get a bunch of e= rror
> messages.

Unfortunately your description is missing t= he single most important
piece of information needed to help you: *how= *, exactly, you did "try to
turn the object file into an executable".<= BR>
The exact command line, and the exact error message, please. = And make
sure you re-read the "README.1st" file before you try again.=

[And can you please reduce your line length?  The whole quot= ed
paragraph above arrived here as a single line of text, which is a b= ad
habit.]
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen= .de)
Even if all the snow were burnt, ashes would remain.


Get more from the Web. FREE MSN Ex= plorer download : http://explorer.msn= .com

------=_NextPart_001_0000_01C36018.EDF8E820--