473,774 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Undefined symbol in C++ template member function when put on vxWorks

When I compile to code using g++arm of VxWorks 5.5 and put it on my
board i get the follwing undefined symbols:-
Cpool and Csingleton are template classes. CPool has the static member
variables:-ms_uCapacity ,ms_uAllocatedC ount ,
ms_uLockCapacit y ,ms_pmutex

-ld < yamit/apps1.out
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_uCapaci ty
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_uAlloca tedCount
(binding 1 type 0)
Undefined symbol: resolvQuery (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_pBlockA llocator
(binding 1 type 0)
Undefined symbol:
_Q23m5tt10CSing leton1ZQ23m5t12 CTimeUpdater$ms _pInstance (binding 1 type
0)
Undefined symbol: _Q23m5tt10CSing leton1ZQ23m5t7C Crypto$ms_pInst ance
(binding 1 type 0)
Undefined symbol: resolvDNExpand (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_uLockCa pacity
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_pmutex (binding
1 type 0)
Undefined symbol:
_Q23m5tt10CSing leton1ZQ23m5t17 CDefaultAllocat or$ms_pInstance (binding 1
type 0)
ld error: Module contains undefined symbol(s) and may be unusable.
value = 0 = 0x0

-voipInit
YM1A call to M5T code/n
Data abort
Exception address: 0x0064c998
Current Processor Status Register: 0x80000013

trcStack aborted: error in frame
184430 yystart +74c: voipInit ()
63b55c voipInit +14 :
m5t::CFramework Initializer::In itialize(void) ()
63af50 m5t::CFramework Initializer::In itialize(void)+ 220:
m5t::Initialize CTime(void) ()
63d7a4 m5t::Initialize CTime(void)+c :
m5t::CTime::Ini tializeCTime(vo id) ()
63d698 m5t::CTime::Ini tializeCTime(vo id)+78 :
m5t::CTimeZone: :CTimeZone(char const *) ()
63fb0c m5t::CTimeZone: :CTimeZone(char const *)+1c0:
m5t::CTimeZone: :SetTimeZone(ch ar const *) ()
64054c m5t::CTimeZone: :SetTimeZone(ch ar const *)+1f0:
m5t::CString::o perator=(char const *) ()
64bea4 m5t::CString::o perator=(char const *)+b8 :
m5t::CString::R eserveCapacity( unsigned short) ()
shell restarted.
Could anyone suggest and solution?

Dec 22 '06 #1
1 5548
On 22 Dec 2006 04:06:36 -0800, ya********@redi ffmail.com wrote in
comp.lang.c++:
When I compile to code using g++arm of VxWorks 5.5 and put it on my
board i get the follwing undefined symbols:-
Cpool and Csingleton are template classes. CPool has the static member
variables:-ms_uCapacity ,ms_uAllocatedC ount ,
ms_uLockCapacit y ,ms_pmutex

-ld < yamit/apps1.out
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_uCapaci ty
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_uAlloca tedCount
(binding 1 type 0)
Undefined symbol: resolvQuery (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_pBlockA llocator
(binding 1 type 0)
Undefined symbol:
_Q23m5tt10CSing leton1ZQ23m5t12 CTimeUpdater$ms _pInstance (binding 1 type
0)
Undefined symbol: _Q23m5tt10CSing leton1ZQ23m5t7C Crypto$ms_pInst ance
(binding 1 type 0)
Undefined symbol: resolvDNExpand (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_uLockCa pacity
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1 ZQ23m5t10CMarsh aler$ms_pmutex (binding
1 type 0)
Undefined symbol:
_Q23m5tt10CSing leton1ZQ23m5t17 CDefaultAllocat or$ms_pInstance (binding 1
type 0)
ld error: Module contains undefined symbol(s) and may be unusable.
value = 0 = 0x0

-voipInit
YM1A call to M5T code/n
Data abort
Exception address: 0x0064c998
Current Processor Status Register: 0x80000013

trcStack aborted: error in frame
184430 yystart +74c: voipInit ()
63b55c voipInit +14 :
m5t::CFramework Initializer::In itialize(void) ()
63af50 m5t::CFramework Initializer::In itialize(void)+ 220:
m5t::Initialize CTime(void) ()
63d7a4 m5t::Initialize CTime(void)+c :
m5t::CTime::Ini tializeCTime(vo id) ()
63d698 m5t::CTime::Ini tializeCTime(vo id)+78 :
m5t::CTimeZone: :CTimeZone(char const *) ()
63fb0c m5t::CTimeZone: :CTimeZone(char const *)+1c0:
m5t::CTimeZone: :SetTimeZone(ch ar const *) ()
64054c m5t::CTimeZone: :SetTimeZone(ch ar const *)+1f0:
m5t::CString::o perator=(char const *) ()
64bea4 m5t::CString::o perator=(char const *)+b8 :
m5t::CString::R eserveCapacity( unsigned short) ()
shell restarted.
Could anyone suggest and solution?
No solution until after you follow the suggestion.

POST THE CODE.

There is something wrong with your source code, but my crystal ball is
off for the holiday weekend...

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Dec 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
11266
by: Stu | last post by:
I am trying to build the xerces shared library with 2.3.0 version of their source code on an AIX 5.1 32 bit machine with the following version of the g++ compiler /usr/local/bin/g++ -v Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.1/specs Configured with: ../gcc-3.3.1/configure --disable-nls Thread model: aix gcc version 3.3.1
0
1644
by: Chris F Clark | last post by:
In our C++ project we have some internal bug reporting macros that we use to get useful information when the program does something unexpected. Essentially at the point of the error, we invoke an internal interactive debugger that knows the classes within our system and allow us to walk around the objects that exist at the time of the fault. It mostly works fairly well. That catch being that we have to hand implement some of the code...
8
4589
by: Scott J. McCaughrin | last post by:
The following program compiles fine but elicits this message from the linker: "undefined reference to VarArray::funct" and thus fails. It seems to behave as if the static data-member: VarArray::funct were an extern, but it is declared in the same file (q.v.). What is the remedy for this? =================
2
2997
by: kamit | last post by:
I have not done much programming with template so please excuse my inexperience. I have function defined in one of the class in this manner. This function is being showed as an undefined function in the shared object that we have created. I am getting a link time error that symbol not found while creating an execuable. template <Class T> long ITLDOdbFactory_T<Class Y>::connection_count (const string& db_name) throw...
3
2734
by: Lee Gillie | last post by:
I have a VS6 project which I brought into VS .NET, and all has been building fine. Then I upgraded to VS 2003 and I have one source which will no longer compile. Any clues? Compiling... DotNetManagedExport.cpp C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcom.h(5529) : error C2872: 'CONNECTDATA' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET
4
5732
by: r.nikhilk | last post by:
Hi, We are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by including the -q64 option in xlC compiler. But, when we link all these libraries to one of the main applications, we are getting the following errors: ld: 0711-317 ERROR: Undefined symbol: .FxCharFile::good() const ld: 0711-317 ERROR: Undefined symbol:...
8
18052
by: pavan734 | last post by:
Hello, Please excuse me as Iam not posting this to correct group. I have a parser code obtained from flex command. I have many other files. When I compile them Iam getting a message like: undefined symbol yylex. What might have went wrong?
1
4913
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined symbols. See the output from configure and make below. svnadm /svn/build/python-2.5.0>env CC=cc CXX=xlC ./configure --prefix=$base_dir \ checking MACHDEP... aix5
5
1744
by: .rhavin grobert | last post by:
Hi group....;-) i have the following class.... _____________________________________________________ // QSharedReg.hpp typedef unsigned __int64 QUAD; using namespace boost;
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.