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.20010323173514.00aceaa8@pop.prodigy.net> X-Sender: ryujiy2 AT pop DOT prodigy DOT net X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 23 Mar 2001 17:40:17 -0500 To: cygwin AT sources DOT redhat DOT com From: Ryuji Yokoyama Subject: Re: Question about g++ In-Reply-To: <200103232209.f2NM9Ub150580@vm1-ext.prodigy.net> References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20010323164215 DOT 00a89aa8 AT pop DOT prodigy DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed I have the same version as yours (gcc-2.95.2-9). I just re-downloaded and re-installed, so I think I have the latest version. Is there any where I might need to look ? At 03:05 PM 3/23/2001 -0700, you wrote: >Well, It looks/sounds to me like you are not actually calling >g++, but gcc. It seems wierd. Here is some info from my >machine.... > > >commpg AT CSU6220509A /usr/bin >$ g++ --version >gcc-2.95.2-9 > >commpg AT CSU6220509A /usr/bin >$ gcc --version >gcc-2.95.2-9 > >commpg AT CSU6220509A /usr/bin >$ ls -alF gcc g++ >-rwxr-xr-x 1 commpg None 74240 Mar 11 11:16 g++* >-rwxr-xr-x 1 commpg None 72704 Mar 11 11:16 gcc* > > >You might try running setup, and make make sure you are >running the latest versions of everything. > >you can also to a 'type -p g++' to see which g++ you are >actually executing. Maybe a rogue version/copy?? > > > >On Fri, 23 Mar 2001 16:49:43 -0500, Ryuji Yokoyama wrote: > > >Thanks for the response. I tried to use -o switch as you mentioned (g++ -o > >hello hello.cc), but I got the same error messages. Also, gcc -o hello > >hello.cc gives me the same thing. Is there any other solution? > > > >Thanks in advance > > > > > >At 08:20 AM 3/23/2001 -0700, you wrote: > >>How are you trying to build this exe. I have the same program, > >>and if I do a > >>make hello, > >>then it fails with all the erros you have listed. This is a known > >>and reported issue with make, where under cygwin, make uses > >>gcc for .cc source files instead of g++. Chris Faylor has noted > >>the error, and made a fix. Just not sure when it will be released. > >>If you want to just use g++, then you should probably give it > >>a -o option: > >>g++ -o hello hello.cc > >>This will make an executable binary called hello (hello.exe under cygwin). > >> > >>HTH > >> > >> > >>On Thu, 22 Mar 2001 10:21:12 -0500, Ryuji Yokoyama wrote: > >> > >> >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+ > 0x2 > >> 9):hell > >> >o.cc: undefined reference to `__rtti_si' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf9stre > amb > >> uf+0x29 > >> >):hello.cc: undefined reference to `__rtti_si' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf7file > buf > >> +0x29): > >> >hello.cc: undefined reference to `__rtti_si' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf7ostr > eam > >> +0x28): > >> >hello.cc: undefined reference to `__rtti_class' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf7istr > eam > >> +0x28): > >> >hello.cc: undefined reference to `__rtti_class' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf8iost > rea > >> m+0x30) > >> >:hello.cc: undefined reference to `__rtti_class' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf22_IO > _is > >> tream_w > >> >ithassign+0x28):hello.cc: undefined reference to `__rtti_class' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf22_IO > _os > >> tream_w > >> >ithassign+0x28):hello.cc: undefined reference to `__rtti_class' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf11_io > s_f > >> ields+0 > >> >x1d):hello.cc: undefined reference to `__rtti_user' > >> >/cygdrive/e/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccGMBWhp.o(.text$__tf8_IO_ > FIL > >> E+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):stdiostr > eam > >> .cc: > >> >un > >> >defined reference to `__rtti_si' > >> >/usr/lib/libstdc++.a(stdiostream.o)(.text$__tf8stdiobuf+0x53):stdiostr > eam > >> .cc: > >> >un > >> >defined reference to `__rtti_si' > >> >/usr/lib/libstdc++.a(stdiostream.o)(.text$__tf8stdiobuf+0x6d):stdiostr > eam > >> .cc: > >> >un > >> >defined reference to `__rtti_si' > >> >/usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12istdiostream+0x39):std > ios > >> tream.c > >> >c: undefined reference to `__rtti_si' > >> >/usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12istdiostream+0x52):std > ios > >> tream.c > >> >c: undefined reference to `__rtti_class' > >> >/usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12istdiostream+0x6b):std > ios > >> tream.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):std > ios > >> tream.c > >> >c: undefined reference to `__rtti_si' > >> >/usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12ostdiostream+0x52):std > ios > >> tream.c > >> >c: undefined reference to `__rtti_class' > >> >/usr/lib/libstdc++.a(stdiostream.o)(.text$__tf12ostdiostream+0x6b):std > ios > >> tream.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 > >> > >> > >> > >> > >>-- > >>Want to unsubscribe from this list? > >>Check out: http://cygwin.com/ml/#unsubscribe-simple > > > > > >-- > >Want to unsubscribe from this list? > >Check out: http://cygwin.com/ml/#unsubscribe-simple > > > > >-- >Want to unsubscribe from this list? >Check out: http://cygwin.com/ml/#unsubscribe-simple -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple