473,473 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

STL undefined symbols strikes again!

Once again, the FORTE 7.0 compiler on Sun screwed me. The error msgs
are incomprehensible. There is the familiar STL linkage problem,
libraries compile fine tho. it's only when I compile the main it gives
the undefined symbol. Appreciate any pointers!!

+++ making oaph
/xenv/Forte/sun4/7.0/5.8p4/prod/bin/CC -D_REENTRANT -g -Dsvr4 -DSVR4 -
DSUN -DCPLUSREL=7.0 -DOSREV=5.8p4 -DY2K -DCOMPILE_STYLE=CPP_COMPILE -
DTYPE_TOKEN_1=\"C\" -I../include -I/home/vb11258/OAD5.0/src/include -
I/xenv/xerces-c++/sun4/5.8p4/2.2.0/include -g -Bdynamic -zignore -
Qoption ld -t -mt -Bdynamic -lposix4 -o oaph dummy.o oaph.o
liboaphdirect.a ../../install/liboaphapp.a ../../install/
libencdec.a ../../install/libOAPHUtils.a -Bdynamic -L /xenv/xerces-c++/
sun4/5.8p4/2.2.0/lib -lxerces-c -L/home/vb11258/OAD5.0/lib -
loasdirect -L /xenv/mqi/sun4/5.x/5.3.0.5/lib -Bdynamic -lmqic -lmqmcs
-lmqmzse -limqb23as -limqc23as -lpthread
Undefined first referenced
symbol in file
__type_0&__rwstd::rw_extract_string<std::basic_ist ream<char,std::char_traits<char>
>,std::basic_string<char,std::char_traits<char>,st d::allocator<char>
,std::char_traits<char(__type_0&,__type_1&,__type _2) ../../install/
liboaphapp.a(AppSender.o)
__type_1
std::copy<std::basic_string<char,std::char_traits< char>,std::allocator<char>
>*,std::basic_string<char,std::char_traits<char>,s td::allocator<char>
*>(__type_0,__type_0,__type_1) liboaphdirect.a(OAPHInstitution.o)
void
std::vector<std::basic_string<char,std::char_trait s<char>,std::allocator<char>
>,std::allocator<std::basic_string<char,std::char_ traits<char>,std::allocator<char>
::__insert_aux(std::basic_string<char,std::char_t raits<char>,std::allocator<char>
*,const
std::basic_string<char,std::char_traits<char>,std: :allocator<char&)
liboaphdirect.a(OAPHInstitution.o)
__rwstd::__rb_tree<std::basic_string<char,std::cha r_traits<char>,std::allocator<char>
>,std::pair<const
std::basic_string<char,std::char_traits<char>,std: :allocator<char>
>,int>,__rwstd::__select1st<std::pair<const
std::basic_string<char,std::char_traits<char>,std: :allocator<char>
>,int>,std::basic_string<char,std::char_traits<cha r>,std::allocator<char>

,std::less<std::basic_string<char,std::char_trait s<char>,std::allocator<char>
,std::allocator<std::pair<const
std::basic_string<char,std::char_traits<char>,std: :allocator<char>
>,int >::iterator
__rwstd::__rb_tree<std::basic_string<char,std::cha r_traits<char>,std::allocator<char>
>,std::pair<const
std::basic_string<char,std::char_traits<char>,std: :allocator<char>
>,int>,__rwstd::__select1st<std::pair<const
std::basic_string<char,std::char_traits<char>,std: :allocator<char>
>,int>,std::basic_string<char,std::char_traits<cha r>,std::allocator<char>

,std::less<std::basic_string<char,std::char_trait s<char>,std::allocator<char>
,std::allocator<std::pair<const
std::basic_string<char,std::char_traits<char>,std: :allocator<char>
>,int >::find(const
std::basic_string<char,std::char_traits<char>,std: :allocator<char>
>&)const ../../install/liboaphapp.a(AppSender.o)
ld: fatal: Symbol referencing errors. No output written to oaph

Feb 13 '07 #1
6 2281
Vijay Bajwa wrote:
Once again, the FORTE 7.0 compiler on Sun screwed me. The error msgs
are incomprehensible. There is the familiar STL linkage problem,
libraries compile fine tho. it's only when I compile the main it gives
the undefined symbol. Appreciate any pointers!!
You are using a very old compiler, but you might get help on
http://forum.java.sun.com/forum.jspa?forumID=850

--
Ian Collins.
Feb 13 '07 #2
On 13 Feb., 23:25, "Vijay Bajwa" <vba...@optonline.netwrote:
Once again, the FORTE 7.0 compiler on Sun screwed me. The error msgs
are incomprehensible. There is the familiar STL linkage problem,
libraries compile fine tho. it's only when I compile the main it gives
the undefined symbol. Appreciate any pointers!!
[snip]
This all looks off-topic to me: ask in a newsgroup where you are on-
topic (a sun or a FORTE compiler newsgroup, I would guess).
It does not look that difficult, however: it looks as a missing
library that should be linked in. You should familiarise yourself with
the compiler and linker to an extent that these kind of problems
become solvable.

/Peter

Feb 13 '07 #3
On Feb 13, 5:31 pm, Ian Collins <ian-n...@hotmail.comwrote:
Vijay Bajwa wrote:
Once again, the FORTE 7.0 compiler on Sun screwed me. The error msgs
are incomprehensible. There is the familiar STL linkage problem,
libraries compile fine tho. it's only when I compile the main it gives
the undefined symbol. Appreciate any pointers!!

You are using a very old compiler, but you might get help onhttp://forum.java.sun.com/forum.jspa?forumID=850
The solution is to link in the object files found in: SunWS_cache/*/
*.o when building an archive library. The reason is that these object
files contain template instance code.
Feb 15 '07 #4
On Feb 13, 5:35 pm, "peter koch" <peter.koch.lar...@gmail.comwrote:
On 13 Feb., 23:25, "Vijay Bajwa" <vba...@optonline.netwrote:Once again, the FORTE 7.0 compiler on Sun screwed me. The error msgs
are incomprehensible. There is the familiar STL linkage problem,
libraries compile fine tho. it's only when I compile the main it gives
the undefined symbol. Appreciate any pointers!!

[snip]
This all looks off-topic to me: ask in a newsgroup where you are on-
topic (a sun or a FORTE compiler newsgroup, I would guess).
It does not look that difficult, however: it looks as a missing
library that should be linked in. You should familiarise yourself with
the compiler and linker to an extent that these kind of problems
become solvable.

/Peter
I agree I should have done more reasearch. But the topic does relate
to template instantiation and complexities arising therefrom, thus
relevant for this group. I posted the solution in reply to Ian's
reply.

Thanks,
Vijay

Feb 15 '07 #5
Vijay Bajwa wrote:
On Feb 13, 5:31 pm, Ian Collins <ian-n...@hotmail.comwrote:
>>Vijay Bajwa wrote:
>>>Once again, the FORTE 7.0 compiler on Sun screwed me. The error msgs
are incomprehensible. There is the familiar STL linkage problem,
libraries compile fine tho. it's only when I compile the main it gives
the undefined symbol. Appreciate any pointers!!

You are using a very old compiler, but you might get help onhttp://forum.java.sun.com/forum.jspa?forumID=850


The solution is to link in the object files found in: SunWS_cache/*/
*.o when building an archive library. The reason is that these object
files contain template instance code.
<OT>
As I said, you are using a very old compiler, these issues don't arise
with recent versions.
</OT>

--
Ian Collins.
Feb 15 '07 #6
In article <11**********************@q2g2000cwa.googlegroups. com>,
vb****@optonline.net says...

[ ... ]
I agree I should have done more reasearch. But the topic does relate
to template instantiation and complexities arising therefrom, thus
relevant for this group. I posted the solution in reply to Ian's
reply.
I'm afraid I have to disagree -- this is about how to operate a specifi
compiler, not about C++ proper. As such, it is off-topic in both
newsgroups to which it's cross-posted.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Feb 16 '07 #7

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

Similar topics

1
by: Torbak | last post by:
I got some question about symbols in libraries ... In libraries, there is public symbols and "not public" symbols (private, static)... In C when we use the "static" keyword on the declaration of...
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...
9
by: PengYu.UT | last post by:
std::size_t and std::ptrdiff_t are defined in <cstddef>. I've noticed that a bunch of old math function in the global namespace are undefined in <cmath> and they are redefined in std namespace. ...
0
by: Alexander Cohen | last post by:
IM trying to build the ppostgres ODBC driver for MacOSX. I thought id try and build it as a bundle from XCode. All compiles no problem but then at the end of the compile i get an undefined symbols...
3
by: comp.lang.php | last post by:
I have a counter that evokes the "Three Strikes You're Out" rule.. if you make more than N mistakes it auto-resets to avoid flooding $_SESSION with attempt after attempt, etc. However, the...
1
by: yamitmehta | last post by:
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...
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...
13
by: 7stud | last post by:
test1.py: -------------------- import shelve s = shelve.open("/Users/me/2testing/dir1/aaa.txt") s = "red" s.close() --------output:------ $ python test1.py
2
by: nd.sundar | last post by:
Hi, I have a collection of C source files (.c and .h). I need to find all identifiers which are used in that collection but not defined within the collection. The identifiers include pre-processor...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
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...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.