Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <5.0.2.1.2.20010322101528.00a6fc98@mail.ryuji.net> X-Sender: ryujiy2 AT pop DOT prodigy DOT net X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 22 Mar 2001 10:21:12 -0500 To: cygwin AT sources DOT redhat DOT com From: Ryuji Yokoyama Subject: Question about g++ Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Hello All! I am new to this list as well as cygwin. I tried to compile following very simple program. However, I just got a lot of error messages, which is bellow the program. If I use -c switch (g++ -c helllo.cc), I get an object file, so I think the compiler is OK. Could anybody tell me how to solve the problem? Thanks #include using namespace std; int main(void) { cout << "Hello World" << endl; return 0; } /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf3ios+0x29):hell o.cc: undefined reference to `__rtti_si' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf9streambuf+0x29 ):hello.cc: undefined reference to `__rtti_si' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf7filebuf+0x29): hello.cc: undefined reference to `__rtti_si' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf7ostream+0x28): hello.cc: undefined reference to `__rtti_class' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf7istream+0x28): hello.cc: undefined reference to `__rtti_class' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf8iostream+0x30) :hello.cc: undefined reference to `__rtti_class' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf22_IO_istream_w ithassign+0x28):hello.cc: undefined reference to `__rtti_class' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf22_IO_ostream_w ithassign+0x28):hello.cc: undefined reference to `__rtti_class' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf11_ios_fields+0 x1d):hello.cc: undefined reference to `__rtti_user' /cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf8_IO_FILE+0x1d) :hello.cc: undefined reference to `__rtti_user' /usr/lib/libstdc++.a(iostream.o)(.text+0xa):iostream.cc: undefined reference to `__get_eh_context' /usr/lib/libstdc++.a(iostream.o)(.text+0x13ea):iostream.cc: undefined reference to `__get_eh_context' /usr/lib/libstdc++.a(iostream.o)(.text+0x17ed):iostream.cc: undefined reference to `__get_eh_context' /usr/lib/libstdc++.a(iostream.o)(.ostream::text$(int)+0xa):iostream.cc: undefine d reference to `__get_eh_context' /usr/lib/libstdc++.a(iostream.o)(.istream::text$(int)+0xa):iostream.cc: undefine d reference to `__get_eh_context' /usr/lib/libstdc++.a(iostream.o)(.iostream::text$(int)+0xd):iostream.cc: more un defined references to `__get_eh_context' follow /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf8stdiobuf+0x39):stdiostream.cc: un defined reference to `__rtti_si' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf8stdiobuf+0x53):stdiostream.cc: un defined reference to `__rtti_si' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf8stdiobuf+0x6d):stdiostream.cc: un defined reference to `__rtti_si' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12istdiostream+0x39):stdiostream.c c: undefined reference to `__rtti_si' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12istdiostream+0x52):stdiostream.c c: undefined reference to `__rtti_class' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12istdiostream+0x6b):stdiostream.c c: undefined reference to `__rtti_class' /usr/lib/libstdc++.a(stdiostream.o)(.istdiostream::text$(int, __sFILE *)+0xd):st diostream.cc: undefined reference to `__get_eh_context' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12ostdiostream+0x39):stdiostream.c c: undefined reference to `__rtti_si' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12ostdiostream+0x52):stdiostream.c c: undefined reference to `__rtti_class' /usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12ostdiostream+0x6b):stdiostream.c c: undefined reference to `__rtti_class' /usr/lib/libstdc++.a(stdiostream.o)(.ostdiostream::text$(int, __sFILE *)+0xd):st diostream.cc: undefined reference to `__get_eh_context' -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple