473,729 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

STL link error on AIX

Hi,
I have a c application which uses a library (libmatrix.a) which has stl usage
But while link stage, i get an error on AIX (IBM) platform ( comp - xlC_r va6)

ld: 0711-317 ERROR: Undefined symbol: _STL::cout
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::_Loc_init::_L oc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::_Loc_init::~_ Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::Init::~Init()

Can someone suggest me as what could be the reason for this error ?
I did not see this error on Sun and linux platform(s)

Regards,
~Pervinder
Nov 14 '05 #1
2 2012

"pervinder" <pe*******@gmai l.com> a écrit dans le message de
news:90******** *************** ***@posting.goo gle.com...
Hi,
I have a c application which uses a library (libmatrix.a) which has stl usage But while link stage, i get an error on AIX (IBM) platform ( comp - xlC_r va6)
ld: 0711-317 ERROR: Undefined symbol: _STL::cout
ld: 0711-317 ERROR: Undefined symbol: .._STL::ios_bas e::_Loc_init::_ Loc_init() ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: .._STL::ios_bas e::_Loc_init::~ _Loc_init() ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::Init::~Init()

Can someone suggest me as what could be the reason for this error ?
I did not see this error on Sun and linux platform(s)

Regards,
~Pervinder


Wrong newsgroup. Ask in comp.lang.c++.
Nov 14 '05 #2
pervinder wrote:
Hi,
I have a c application which uses a library (libmatrix.a) which has stl usage
But while link stage, i get an error on AIX (IBM) platform ( comp - xlC_r va6)

ld: 0711-317 ERROR: Undefined symbol: _STL::cout
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::_Loc_init::_L oc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::_Loc_init::~_ Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base ::Init::~Init()

Can someone suggest me as what could be the reason for this error ?
I did not see this error on Sun and linux platform(s)

Regards,
~Pervinder


Perhaps you need to compiler your program as a C++ program?
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book

Nov 14 '05 #3

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

Similar topics

6
19024
by: Matthew Houseman | last post by:
All, I've created a synonym that points to a package over a database link like so: CREATE SYNONYM API_MYLINK FOR USER.CSAPI_V2@INSTANCE.DOMAIN.COM I've granted execute like so: grant execute on CSAPI_V2 to scott; When I attach to the database in C# using ODP.NET and attempt to
1
2355
by: Andrew V. Romero | last post by:
I have a script that I am working on for an intranet tool and in this script I have a form, which when submitted the onSubmit command calls calculate(). In this calculate function, I have it do some calculations and write out a new document using document.write(). One of the lines it writes is (the whole script is at the bottom of this email). pageData = PageData+"<b>Patient Data</b><br>Wt: "+weight+" "+weightUnits+" &nbsp&nbsp Ht:...
10
9526
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the errors below. Everything compiles fine and all the types are defined, it appears that the template type itga::order_collection::iterator is causing the trouble. Gary.
10
7608
by: Ian Lazarus | last post by:
Hello. How do "unresolved token" link errors occur. How do I fix them? Linking... LINK : error LNK2020: unresolved token (0A000015) ??_7type_info@@6B@ LINK : error LNK2020: unresolved token (0A000016) _CxxThrowException LINK : error LNK2020: unresolved token (0A000018) exception.__ctor LINK : error LNK2020: unresolved token (0A000019) exception.__ctor LINK : error LNK2020: unresolved token (0A00001A) exception.__dtor LINK : error...
4
6105
by: Jun | last post by:
anyone know how this error shows? how can i solve this? LINK : error LNK2020: unresolved token (0A0000EA) _AtlBaseModule LINK : error LNK2020: unresolved token (0A0000EC) atlTraceGeneral LINK : error LNK2020: unresolved token (0A0000ED) ?s_trace@CTrace@ATL@@2V12@A LINK : fatal error LNK1120: 3 unresolved externals thanks in advance.
13
4914
by: rdemyan via AccessMonster.com | last post by:
My front-end code manually links to the backend file. I was wondering what stops Access from linking to the system tables in the backend file. Is it just by virtue that they are hidden? This has recently come up because I've been playing around with converting my front end to A2003 format. At some point, I had a corruption issue with a system file MSStorage something. Access kept saying it couldn't find it. When I looked in the db...
5
4688
by: Bruce | last post by:
I am getting a lot of link errors when compiling in the debug build but not release. I am compiling a CLR managed code class library. I believe the link errors are actually being caused by a static library of unmanagaed code. I think the problem comes from the fact that the unmanaged static lib uses the STL. Any idea how to fix this?
10
6765
richardhodge
by: richardhodge | last post by:
I am a VB6 database programmer and have run into a small problem. The company I work for primarily uses Microsoft Access 2000 for the database that is the back end for our software. Well the functionality that I am currently working on creates a table in one database and then links it into the primary database that is used by the program to store and retrieve data from. Here's the problem. I can create the table fine but when I go to link the...
7
2952
by: ApexData | last post by:
Hello I currently Link the FE/BE using the LinkTables Option and the Linked Table Manager. Any time I need to move the BE to another location, I have to go through this process over again. I need the flexibility of being able to move the BE data to wherever I want, without manually going through this process. I just want to change the Path/Filename that I keep in a FE Table. I want to be able to place a Path/Filename in a FE Table...
3
3351
by: Kevin | last post by:
Hi guys, I am a beginner for QT, and I installed the free qt 2.3 under windows (XP), as well as the MS's free VC expression edition (for their compilers, linkers, etc), and the SDK tool. My first qt program is simple: the first demo which comes with the qt 2.3 installation. The only one code file is: main.cpp, and it is: #include <qapplication.h> #include <qpushbutton.h>
0
9427
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9284
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...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
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
6022
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
4528
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...
1
3238
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
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.