public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* undefined reference
@ 2000-02-04  8:18 Andre Heidenreich
  2000-02-06 19:06 ` Alexandre Oliva
  2000-04-01  0:00 ` Andre Heidenreich
  0 siblings, 2 replies; 13+ messages in thread
From: Andre Heidenreich @ 2000-02-04  8:18 UTC (permalink / raw)
  To: gcc-help

hi gcc-users

i've a problem when i compiling and linking glibc-2.1.2.
the following error occured

$> gcc -nostdlib -nostartfiles -o /usr/src/misc/glibc-2.1.2.obj/db2/makedb
   /usr/src/misc/glibc-2.1.2.obj/csu/crt1.o
   /usr/src/misc/glibc-2.1.2.obj/csu/crti.o `gcc
   --print-file-name=crtbegin.o`
   /usr/src/misc/glibc-2.1.2.obj/db2/makedb.o
   /usr/src/misc/glibc-2.1.2.obj/db2/libdb.so.3
 -Wl,-rpath-link=/usr/src/misc/glibc-2.1.2.obj:/usr/src/misc/glibc-2.1.2.obj/math:/usr/src/misc/glibc-2.1.2.obj/elf:/usr/src/misc/glibc-2.1.2.obj/nss:/usr/src/misc/glibc-2.1.2.obj/nis:/usr/src/misc/glibc-2.1.2.obj/db2:/usr/src/misc/glibc-2.1.2.obj/rt:/usr/src/misc/glibc-2.1.2.obj/resolv:/usr/src/misc/glibc-2.1.2.obj/linuxthreads
   /usr/src/misc/glibc-2.1.2.obj/libc.so.6.1
   /usr/src/misc/glibc-2.1.2.obj/libc_nonshared.a -lgcc `gcc
   --print-file-name=crtend.o` /usr/src/misc/glibc-2.1.2.obj/csu/crtn.o

/usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2: undefined reference to
`__libc_global_ctors'

why was /usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2 used?

$> nm /usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2 | grep
   __libc_global_ctors
U __libc_global_ctors

and

$> nm /usr/src/misc/glibc-2.1.2.obj/libc.so.6.1 | grep
   __libc_global_ctors
0000000000031ba0 t __libc_global_ctors

and also

$> nm /lib/libc.so.6.1 | grep __libc_global_ctors
0000000000032280 t __libc_global_ctors

why are there errors during linking?

my system:
$> gcc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

with glibc-2.1.2-17.alpha.rpm installed

thx for advise

andre


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Undefined Reference
@ 2002-10-29 17:22 Vincent Lee
  2002-10-30  1:06 ` bjorn rohde jensen
  0 siblings, 1 reply; 13+ messages in thread
From: Vincent Lee @ 2002-10-29 17:22 UTC (permalink / raw)
  To: gcc-help

I'm new to using C and the GNU compilers. I'm trying
to use the Db2 C samples. I am getting a problem with
an UNDEFINED REFERENCE. In a header file called
db2util.h there are some static METHODS that the
compiler is complaining about.

Does anyone know what this means? What kind of problem
is this?

=====
Regards,
Vincent

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* undefined reference
@ 2004-09-11 15:35 zippo
  2004-09-11 15:58 ` Eljay Love-Jensen
  0 siblings, 1 reply; 13+ messages in thread
From: zippo @ 2004-09-11 15:35 UTC (permalink / raw)
  To: gcc-help

I am getting a undefined reference error to this code. I don't see why. Any help would be great.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dvdread/dvd_reader.h>
#include <dvdread/ifo_types.h>
#include <dvdread/ifo_read.h>
#include <dvdread/nav_read.h>
#include <dvdread/nav_print.h>

int main() {

	ifo_handle_t *vmg_file;
	dvd_reader_t      *dvd;
		
	vmg_file = ifoOpen( dvd, 0 );
	
	//printf ("YAY %s", vmg_file);
	ifoClose( vmg_file );
}

$ gcc main.c -o rip
/tmp/cc8cLKIQ.o(.text+0x2b): In function `main':
: undefined reference to `ifoOpen'
/tmp/cc8cLKIQ.o(.text+0x39): In function `main':
: undefined reference to `ifoClose'
collect2: ld returned 1 exit status


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <CA+JCqFYCePkAWFyUv5gp4rZbMUL8j71hBxY6=-4ju2DduhpCGA@mail.gmail.com>]

end of thread, other threads:[~2022-06-05 22:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-04  8:18 undefined reference Andre Heidenreich
2000-02-06 19:06 ` Alexandre Oliva
2000-04-01  0:00   ` Alexandre Oliva
2000-04-01  0:00 ` Andre Heidenreich
2002-10-29 17:22 Undefined Reference Vincent Lee
2002-10-30  1:06 ` bjorn rohde jensen
2004-09-11 15:35 undefined reference zippo
2004-09-11 15:58 ` Eljay Love-Jensen
2004-09-11 20:00   ` zippo
2004-09-11 23:35     ` Eljay Love-Jensen
     [not found] <CA+JCqFYCePkAWFyUv5gp4rZbMUL8j71hBxY6=-4ju2DduhpCGA@mail.gmail.com>
2022-06-05 13:03 ` renwang101
2022-06-05 22:07   ` fedor_qd
2022-06-05 22:54     ` renwang101

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