473,395 Members | 1,474 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,395 software developers and data experts.

LD errors when I link to archive, but not with the objects.

I'm getting undefined symbols when I try to put my objects
in a static lib, but when I link all the objects with my main test
program, everything works fine...

I've traced the problem to a vector clear and a vector push
operation.

Here's the error message:

__type_1
std::copy<OC::ColumnData*,OC::ColumnData*>(__type_ 0,__type_0,__type_1)
OClib.a(Record.o)

void std::vector<OC::ColumnData,std::allocator<OC::Colu mnData>
::__insert_aux(OC::ColumnData*,const OC::ColumnData&) OClib.a(Record.o)


My compiler data
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-09 2002/07/17

Thanks,
Ihor Kinal

Feb 15 '06 #1
2 1200
ikinal wrote:
I'm getting undefined symbols when I try to put my objects
in a static lib, but when I link all the objects with my main test
program, everything works fine...

<snip>

My compiler data
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-09 2002/07/17


Probably best to go somewhere that toolchain is topical. Linking and
static libs are platform specific.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Feb 15 '06 #2
Ben Pope wrote:
ikinal wrote:
I'm getting undefined symbols when I try to put my objects
in a static lib, but when I link all the objects with my main test
program, everything works fine...

<snip>

My compiler data
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-09 2002/07/17

Probably best to go somewhere that toolchain is topical. Linking and
static libs are platform specific.

Ben Pope


http://forum.sun.com/forum.jspa?forumID=5

--
Ian Collins.
Feb 15 '06 #3

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

Similar topics

2
by: Trev | last post by:
SQL Server 2000 BE, Access 2002 FE. I want to write a stored procedure, that will among other things log errors to a table, I want to be able to report a summary of work done and errors to the...
1
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct...
2
by: ASallade | last post by:
Hello, I've scoured my books and the web, but am still daunted, hopefully some of the users in this newsgroup will have advice for my problem. I am not an experienced javascript programmer,...
36
by: Peter Brause | last post by:
Hello, my stylesheet shows different colors for visited, active and hovered links. It works fine in IE 6, but in Opera 7 the color for the active link (red background) is never shown. How to...
3
by: Abhishek | last post by:
Hi, I am trying to use the STL for C++ on Compaq. From what I read in the man pages and several online documentation, it is recommended that in order to use the STL on COMPAQ , I need to use the...
5
by: Alan Howard | last post by:
We're getting "ERROR (0x8007000E) Not enough storage is available to complete this operation" errors on a fairly large, busy ASP/SQL Server web site. The error is being thrown on a line calling...
1
by: | last post by:
I'm having a problem finding the cause for this problem. I have a solution in Visual Studio 2005 that contains two projects -- a Web Site and a Class Library. The web site references the class...
2
by: Bruce | last post by:
I am converting a DLL project from VC7 to VC8. The project is a managed C++ DLL. The project uses a non managed C++ library compiled an linked in VC7 which uses the STL. I just about got...
4
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.