Sponsored Content
Full Discussion: G++ Linker Error
Operating Systems Linux G++ Linker Error Post 302205411 by bigrigdriver on Saturday 14th of June 2008 11:41:37 PM
Old 06-15-2008
Quote:
"undefined reference to ....."
This usually means something like missing *includes*, which means missing devel files. Check to see that you have glibc-devel installed.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linker (ld)

hai I have installed Linux 7.0 on my system and i have an doubt the linker i ran simple hello.c program with gcc compiler gcc -c hello.c i want linker to produce the output so i put on the command line as ld first.o -lc but it is not running ver properly but there is an... (1 Reply)
Discussion started by: rajashekaran
1 Replies

2. Programming

CC LInker Error UNIX Sun Solaris

Hi Together, while compiling my program with CC I get the following Error message from the Linker: Undefined first referenced symbol in file std::basic_string<char,std::char_traits<char>,std::allocator<char>... (2 Replies)
Discussion started by: nik
2 Replies

3. Programming

Linker error when using vector's

using SUN C++ I have a problem when I do a push_back on a vector. The linker gives me a undefined symbol error on __cxa_end_catch. Any ideas, is there a library to include? Thanks Chris (1 Reply)
Discussion started by: CDurkin
1 Replies

4. HP-UX

dynamic linker error

Hi All Could anyone help in giving a little background to the following runtime error. /usr/lib/pa20_64/dld.sl: Mmap failed due to errno: 13. Seen when executing a 64-bit ELF executable. Thanks Ed (3 Replies)
Discussion started by: C3000
3 Replies

5. UNIX for Advanced & Expert Users

LD linker define symbol

Hi, I want to define a symbol in my code as: extern int Address; and then I'd like to define the symbol value in linker (ld) script file, so each time I change the hardware, I don't need to redefine the value in code, just use different linker script. I've gone through ld reference and didn't... (3 Replies)
Discussion started by: lzwierko
3 Replies

6. HP-UX

Hp-ux linker option -c

Hi, The necessary symbols in a shared library can be exported to the application using linker option --version-script in Linux. The same can be done in Hp-ux using linker option +e. This can also be done by listing all the global symbols with +e in a file with linker option ld -c filename in... (0 Replies)
Discussion started by: roopa_v
0 Replies

7. Programming

gcc linker address

Hai, I have two (Pgm1.c and Pgm2.c) simple programs, which is compiled using gcc. Now we have two exe's (Pgm1 and Pgm2). When i executed the nm Pgm1 and nm Pgm2, in the listed symbols the address of main is same for both programs (08048344 T main) at run time also. Doubt: 1) What is this... (3 Replies)
Discussion started by: rajamohan
3 Replies

8. Solaris

runtime linker errors

Hey guys I have a solaris 10 OS, with a zone configured. In that zone, I am trying to install an Oracle Client. However, when I run the oracle installer, I get the following error: ld.so.1: java: fatal: libexpat.so.0: open failed: No such file or directory ld.so.1: java: fatal:... (2 Replies)
Discussion started by: goodvikings
2 Replies

9. Solaris

Runtime Linker Problems ld.so.1

Hello all, I am releatively new to Solaris and I am the System administrator for my branch at the FAA. This is the first time I can say I have really messed something up thankfully. My issue came up after installing and uninstalling Oracle Secure Backup which i felt I needed to do a clean... (7 Replies)
Discussion started by: jbirkes
7 Replies
rtld_db(3EXT)						    Extended Library Functions						     rtld_db(3EXT)

NAME
rtld_db, rd_delete, rd_errstr, rd_event_addr, rd_event_enable, rd_event_getmsg, rd_init, rd_loadobj_iter, rd_log, rd_new, rd_objpad_enable, rd_plt_resolution, rd_reset - runtime linker debugging functions SYNOPSIS
cc [ flag ... ] file ... -lrtld_db [ library ... ] #include <proc_service.h> #include <rtld_db.h> void rd_delete(struct rd_agent *rdap); char *rd_errstr(rd_err_e rderr); rd_err_e rd_event_addr(rd_agent *rdap, rd_notify_t *notify); rd_err_e rd_event_enable(struct rd_agent *rdap, int onoff); rd_err_e rd_event_getmsg(struct rd_agent *rdap, rd_event_msg_t *msg); rd_err_e rd_init(int version); typedef int rl_iter_f(const rd_loadobj_t *, void *); rd_err_e rd_loadobj_iter(rd_agent_t *rap, rl_iter_f *cb, void *clnt_data); void rd_log(const int onoff); rd_agent_t *rd_new(struct ps_prochandle *php); rd_err_e rd_objpad_enable(struct rd_agent *rdap, size_t padsize); rd_err_e rd_plt_resolution(rd_agent *rdap, paddr_t pc, lwpid_t lwpid, paddr_t plt_base, rd_plt_info_t *rpi); rd_err_e rd_reset(struct rd_agent *rdap); DESCRIPTION
The librtld_db library provides support for monitoring and manipulating runtime linking aspects of a program. There are at least two pro- cesses involved, the controlling process and one or more target processes. The controlling process is the librtld_db client that links with librtld_db and uses librtld_db to inspect or modify runtime linking aspects of one or more target processes. See the Linker and Libraries Guide for a full description of the runtime linker debugger interface mechanism. ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
ld.so.1(1), libc_db(3LIB), librtld_db(3LIB), attributes(5) Linker and Libraries Guide SunOS 5.10 19 Apr 2002 rtld_db(3EXT)
All times are GMT -4. The time now is 08:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy