public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RedHat 7 - GCC Version Problems
@ 2001-01-05  1:26 Christos Sotiriou
  2001-01-07 17:56 ` Yu Xuanwei
  0 siblings, 1 reply; 2+ messages in thread
From: Christos Sotiriou @ 2001-01-05  1:26 UTC (permalink / raw)
  To: gcc-help; +Cc: Christos Sotiriou

 Hello.

 I have found problems trying to compile a program with the g++
 compiler that ships with RedHat Linux 7.0. My program compiles
 fine with the g++ compiler of RedHat 6.2. I realise that the
 g++ version is changed. In my case, some of the warning that
 I was getting now have become errors and the program will
 not compile. I tried using kgcc -x c++ and that seems to work,
 but I get library errors when I link the file.

 My question is this. How can I tell kgcc to use c++ style
 linking? Can I force g++ not to use the ISO/ANSI standards
 so my program will compile like in the earlier versions? I
 tried the options on the man page, such as -traditional, but
 nothing seems to make a difference.

 Linking with kgcc gives me the following errors:
 (Is this because it uses c style linking, rather than c++?)

 /usr/X11R6/lib/libX11.so.6: undefined reference to
`getpwuid_r@GLIBC_2.1.2'
/lib/libpthread.so.0: undefined reference to `__sysctl@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_unlock@GLIBC_2.2'
/usr/lib/libGL.so.1: undefined reference to `shmctl@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_file@GLIBC_2.2'
/usr/X11R6/lib/libX11.so.6: undefined reference to
`getpwnam_r@GLIBC_2.1.2'
/lib/libpthread.so.0: undefined reference to `getrlimit@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to
`_IO_list_resetlock@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_begin@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_next@GLIBC_2.2'
/lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_iter_end@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `setrlimit@GLIBC_2.2'
/lib/libpthread.so.0: undefined reference to `_IO_list_lock@GLIBC_2.2'
/home/cxs/Qt/qt-2.2.0/lib/libqt.so: undefined reference to
`__res_init@GLIBC_2.2'
/lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_2.2'
collect2: ld returned 1 exit status

 Any suggestions?

 Thanks for the help.

 Christos Sotiriou.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RedHat 7 - GCC Version Problems
  2001-01-05  1:26 RedHat 7 - GCC Version Problems Christos Sotiriou
@ 2001-01-07 17:56 ` Yu Xuanwei
  0 siblings, 0 replies; 2+ messages in thread
From: Yu Xuanwei @ 2001-01-07 17:56 UTC (permalink / raw)
  To: Christos Sotiriou, gcc-help

Hi, Buddy:

If you learn about the backdrop of RH7.0. You won't feel surprised. Go to following please:
http://www.linuxgram.com/newsitem.phtml?sid=108&aid=11472

Happy Hacking!

Yu Xuanwei

----- Original Message ----- 
From: Christos Sotiriou <cxs@dcs.ed.ac.uk>
To: <gcc-help@gcc.gnu.org>
Cc: Christos Sotiriou <cxs@dcs.ed.ac.uk>
Sent: Friday, January 05, 2001 5:26 PM
Subject: RedHat 7 - GCC Version Problems


> 
>  Hello.
> 
>  I have found problems trying to compile a program with the g++
>  compiler that ships with RedHat Linux 7.0. My program compiles
>  fine with the g++ compiler of RedHat 6.2. I realise that the
>  g++ version is changed. In my case, some of the warning that
>  I was getting now have become errors and the program will
>  not compile. I tried using kgcc -x c++ and that seems to work,
>  but I get library errors when I link the file.
> 
>  My question is this. How can I tell kgcc to use c++ style
>  linking? Can I force g++ not to use the ISO/ANSI standards
>  so my program will compile like in the earlier versions? I
>  tried the options on the man page, such as -traditional, but
>  nothing seems to make a difference.
> 
>  Linking with kgcc gives me the following errors:
>  (Is this because it uses c style linking, rather than c++?)
> 
>  /usr/X11R6/lib/libX11.so.6: undefined reference to
> `getpwuid_r@GLIBC_2.1.2'
> /lib/libpthread.so.0: undefined reference to `__sysctl@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `_IO_list_unlock@GLIBC_2.2'
> /usr/lib/libGL.so.1: undefined reference to `shmctl@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `_IO_iter_file@GLIBC_2.2'
> /usr/X11R6/lib/libX11.so.6: undefined reference to
> `getpwnam_r@GLIBC_2.1.2'
> /lib/libpthread.so.0: undefined reference to `getrlimit@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to
> `_IO_list_resetlock@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `_IO_iter_begin@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `_IO_iter_next@GLIBC_2.2'
> /lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `_IO_iter_end@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `setrlimit@GLIBC_2.2'
> /lib/libpthread.so.0: undefined reference to `_IO_list_lock@GLIBC_2.2'
> /home/cxs/Qt/qt-2.2.0/lib/libqt.so: undefined reference to
> `__res_init@GLIBC_2.2'
> /lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_2.2'
> collect2: ld returned 1 exit status
> 
>  Any suggestions?
> 
>  Thanks for the help.
> 
>  Christos Sotiriou.
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-07 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-05  1:26 RedHat 7 - GCC Version Problems Christos Sotiriou
2001-01-07 17:56 ` Yu Xuanwei

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).