473,394 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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_uAllocatedCount ,
ms_uLockCapacity ,ms_pmutex

-ld < yamit/apps1.out
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uCapacity
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uAllocatedCo unt
(binding 1 type 0)
Undefined symbol: resolvQuery (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_pBlockAlloca tor
(binding 1 type 0)
Undefined symbol:
_Q23m5tt10CSingleton1ZQ23m5t12CTimeUpdater$ms_pIns tance (binding 1 type
0)
Undefined symbol: _Q23m5tt10CSingleton1ZQ23m5t7CCrypto$ms_pInstance
(binding 1 type 0)
Undefined symbol: resolvDNExpand (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uLockCapacit y
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_pmutex (binding
1 type 0)
Undefined symbol:
_Q23m5tt10CSingleton1ZQ23m5t17CDefaultAllocator$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::CFrameworkInitializer::Initialize(void) ()
63af50 m5t::CFrameworkInitializer::Initialize(void)+220:
m5t::InitializeCTime(void) ()
63d7a4 m5t::InitializeCTime(void)+c :
m5t::CTime::InitializeCTime(void) ()
63d698 m5t::CTime::InitializeCTime(void)+78 :
m5t::CTimeZone::CTimeZone(char const *) ()
63fb0c m5t::CTimeZone::CTimeZone(char const *)+1c0:
m5t::CTimeZone::SetTimeZone(char const *) ()
64054c m5t::CTimeZone::SetTimeZone(char const *)+1f0:
m5t::CString::operator=(char const *) ()
64bea4 m5t::CString::operator=(char const *)+b8 :
m5t::CString::ReserveCapacity(unsigned short) ()
shell restarted.
Could anyone suggest and solution?

Dec 22 '06 #1
1 5522
On 22 Dec 2006 04:06:36 -0800, ya********@rediffmail.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_uAllocatedCount ,
ms_uLockCapacity ,ms_pmutex

-ld < yamit/apps1.out
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uCapacity
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uAllocatedCo unt
(binding 1 type 0)
Undefined symbol: resolvQuery (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_pBlockAlloca tor
(binding 1 type 0)
Undefined symbol:
_Q23m5tt10CSingleton1ZQ23m5t12CTimeUpdater$ms_pIns tance (binding 1 type
0)
Undefined symbol: _Q23m5tt10CSingleton1ZQ23m5t7CCrypto$ms_pInstance
(binding 1 type 0)
Undefined symbol: resolvDNExpand (binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_uLockCapacit y
(binding 1 type 0)
Undefined symbol: _Q23m5tt5CPool1ZQ23m5t10CMarshaler$ms_pmutex (binding
1 type 0)
Undefined symbol:
_Q23m5tt10CSingleton1ZQ23m5t17CDefaultAllocator$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::CFrameworkInitializer::Initialize(void) ()
63af50 m5t::CFrameworkInitializer::Initialize(void)+220:
m5t::InitializeCTime(void) ()
63d7a4 m5t::InitializeCTime(void)+c :
m5t::CTime::InitializeCTime(void) ()
63d698 m5t::CTime::InitializeCTime(void)+78 :
m5t::CTimeZone::CTimeZone(char const *) ()
63fb0c m5t::CTimeZone::CTimeZone(char const *)+1c0:
m5t::CTimeZone::SetTimeZone(char const *) ()
64054c m5t::CTimeZone::SetTimeZone(char const *)+1f0:
m5t::CString::operator=(char const *) ()
64bea4 m5t::CString::operator=(char const *)+b8 :
m5t::CString::ReserveCapacity(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.learn.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
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...
0
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...
8
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:...
2
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...
3
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......
4
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...
8
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:...
1
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...
5
by: .rhavin grobert | last post by:
Hi group....;-) i have the following class.... _____________________________________________________ // QSharedReg.hpp typedef unsigned __int64 QUAD; using namespace boost;
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.