CPP Linker Error


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News CPP Linker Error
# 1  
Old 06-09-2008
CPP Linker Error

Hi All,

I m new to this group.
I m facing one problem during my linking of CPP code at Linux env.
after compliation i m getting error

"undefined reference to ....."

Please anyone help me to resolve this error.

Regards,
ASR


make[1]: Leaving directory /fwk'
echo g++ -o server Main.o -L. -L./lib -lfwk -L/opt/ACE_wrappers/lib -lACE -L/opt/ACE_wrappers/TAO/tao -lTAO -lTAO_PortableServer -L/opt/ACE_wrappers/TAO/orbsvcs/orbsvcs -lTAO_CosNaming -lpthread
g++ -o server Main.o -L. -L./lib -lfwk -L/opt/ACE_wrappers/lib -lACE -L/opt/ACE_wrappers/TAO/tao -lTAO -lTAO_PortableServer -L/opt/ACE_wrappers/TAO/orbsvcs/orbsvcs -lTAO_CosNaming -lpthread
g++ -o server Main.o -L. -L./lib -lfwk -L/opt/ACE_wrappers/lib -lACE -L/opt/ACE_wrappers/TAO/tao -lTAO -lTAO_PortableServer -L/opt/ACE_wrappers/TAO/orbsvcs/orbsvcs -lTAO_CosNaming -lpthread
./lib/libfwk.a(ComChannel.o): In function `ComChannel::getRemoteAddr(MibCommAddress&)':
/home/wolf/Server/RMS-working/fwk/ComChannel.cpp:156: undefined reference to `ComChannelStream<ACE_SOCK_Stream, ACE_INET_Addr>:Smilieeer()'
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error in compiling .cpp file

I get this error, defaults.cpp: In member function ‘int Defaults::GetIntDefault(const std::string&)’: defaults.cpp:68: error: ‘atoi’ was not declared in this scope defaults.cpp: In member function ‘real_t Defaults::GetRealDefault(const std::string&)’: defaults.cpp:76: error: ‘atof’ was not... (1 Reply)
Discussion started by: bstephens
1 Replies

2. Programming

Error with shared lIBMpi.so.1 when compiling CPP program

Hello, Met a problem when compiling a C++ program from source code without error, but when ran it there was always an error message: ./Ray: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directoryAs the error points to openmpi which was... (0 Replies)
Discussion started by: yifangt
0 Replies

3. Web Development

<Apache>error when compiling CPP modules

Hi, I am working on Linux Platform. I am just trying to port a CPP module to apache as a module. When I try to build the Apache , it throws an error as follows libtool: unrecognized option `-DLINUX=2' Later I did some search and changed the config_vars.mk file under the "build" directory of... (0 Replies)
Discussion started by: ashabb
0 Replies

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

5. Linux

G++ Linker Error

Hi All, I m new to this group. I m facing one problem during my linking of CPP code at Linux env. after compliation i m getting error "undefined reference to ....." Please anyone help me to resolve this error. Regards, ASR make: Leaving directory /fwk' echo g++ -o server ... (1 Reply)
Discussion started by: ASRRAJ
1 Replies

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

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

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

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

10. 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
Login or Register to Ask a Question
KiokuDB::Linker(3pm)					User Contributed Perl Documentation				      KiokuDB::Linker(3pm)

NAME
KiokuDB::Linker - Relinks live objects from storage entries SYNOPSIS
# mostly internal DESCRIPTION
The linker reconnects entry data, recreating the connected object graph in memory. The linkage process starts with an ID (or several IDs) to be loaded passed to the "get_or_load_objects" method. This ID will first be searched for in the live object set (KiokuDB::LiveObjects). If the object is already live, then it will be returned as is. If the object is not live, then the corresponding entry is fetched from the backend, and expanded into an actual instance. Expansion consults the KiokuDB::TypeMap using KiokuDB::TypeMap::Resolver, to find the correct typemap entry (see "COLLAPSING STRATEGIES" in KiokuDB::Collapser and KiokuDB::TypeMap), and that is used for the actual expansion. Most of the grunt work is delegated by the entries back to the linker using the "inflate_data" method, which handles circular structures, retrying of tied structures, etc. Inflated objects are registered with KiokuDB::LiveObjects, and get inserted into the current live object scope (KiokuDB::LiveObjects::Scope). The scope's job is to maintain a reference count of at least 1 for any loaded object, until it is destroyed itself. This ensures that weak references are not destroyed prematurely, but allows their use in order to avoid memory leaks. perl v5.12.4 2010-10-11 KiokuDB::Linker(3pm)