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

Urgent: Need info on C++ Linking

Hi,
We have lot of c and fortran archive libraries that have complex
dependencies. We have different server tasks that use some of these
libraries. We have developed a tool inhouse that links server tasks by
continuously iterating until it figures out the correct library order.
Recently we introduced some C++ legacy libraries. I am completely new
to C++ linking. Is there some tutorial that can explain the nuances of
C++ linking? We do links on DIGITAL UNIX, SUN Solaris, IBMS and HP
UNIX platforms. I compiled same cpp source files on all four platforms
but was suprised to see that the symbol information differs widely
across all four platforms. For C/FORTRAN code, it is pretty
straightforward to look at o/p from nm command and see what global
(data/function) symbols a given object file/library exports. But that
doesnt seem to be case with C++. The global symbols exported on IBMs
and HPUNIXes is drastically different from what I see on other
architectures. I have very little knowledge of C++. I would appreciate
if someone out there can point me to some documents that can help me
get started.
Thanks a lot,
Sunil
Jul 22 '05 #1
2 1663
On 21 Oct 2004 17:04:24 -0700, su****************@yahoo.com (sunil)
wrote in comp.lang.c++:
Hi,
We have lot of c and fortran archive libraries that have complex
dependencies. We have different server tasks that use some of these
libraries. We have developed a tool inhouse that links server tasks by
continuously iterating until it figures out the correct library order.
Recently we introduced some C++ legacy libraries. I am completely new
to C++ linking. Is there some tutorial that can explain the nuances of
C++ linking? We do links on DIGITAL UNIX, SUN Solaris, IBMS and HP
UNIX platforms. I compiled same cpp source files on all four platforms
but was suprised to see that the symbol information differs widely
across all four platforms. For C/FORTRAN code, it is pretty
straightforward to look at o/p from nm command and see what global
(data/function) symbols a given object file/library exports. But that
doesnt seem to be case with C++. The global symbols exported on IBMs
and HPUNIXes is drastically different from what I see on other
architectures. I have very little knowledge of C++. I would appreciate
if someone out there can point me to some documents that can help me
get started.
Thanks a lot,
Sunil


Sorry, wrong group. Linkers are not a language issue, and C++ never
heard of FORTRAN. I'm not sure where the best place to ask this
question would be, but it is off-topic here.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
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
Jul 22 '05 #2
sunil schrieb:
Hi,
[...] I am completely new
to C++ linking. Is there some tutorial that can explain the nuances of
C++ linking? We do links on DIGITAL UNIX, SUN Solaris, IBMS and HP
UNIX platforms. I compiled same cpp source files on all four platforms
but was suprised to see that the symbol information differs widely
across all four platforms. For C/FORTRAN code, it is pretty
straightforward to look at o/p from nm command and see what global
(data/function) symbols a given object file/library exports. But that
doesnt seem to be case with C++. [...]


In C++, symbol names are "mangled" to include not only their plain
names, but also their type. How exactly this is done is
implementation-defined, that's why you see those differences between
toolsets for different platforms. Some versions of nm have an option to
demangle C++ symbol names to human readable form or your toolset might
include something like "c++filt" to pipe nm's output through. Apart
from that, linking C++ objects isn't really any different than linking C
objects. Either way, this is compiler/linker-specific and not a C++
language issue; if you have any further questions about this,
comp.unix.programmer seems to be a more adequate place to me.

Regards,
Malte
Jul 22 '05 #3

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

Similar topics

2
by: js | last post by:
Hi all, I currently encounter a problem and it is urgent to me. After calling the MsgBox.Show(), the message box is shown with non-modal mode, what is the possible reason??? This only happen...
2
by: Rob Manger | last post by:
Hi Guys, Urgent problem. Trying to compile my solution I get the following error: Linking... LINK: fatal error LNK1181: cannot open input file 'Release\icmpping.abj' Note, I havn't changed...
6
by: varkey.mathew | last post by:
Dear all, Bear with me, a poor newbie(atleast in AD).. I have to authenticate a user ID and password for a user as a valid Active Directory user or not. I have created the IsAuthenticated...
17
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
1
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
1
by: TexCube | last post by:
Hello everyone, I have an urgent question. Can data be pulled from an access database table to create a directory that can be printed out and bound together? I need to have each row of a...
5
by: blakerrr | last post by:
Hi everyone, I have a form called Master Order with a subform in it called Order Info. The subform has a nested subform in it called Order Details. Master Order cycles through all of the parts...
1
by: sachinv1821 | last post by:
hi all , i am getting this Problem i am Unable to Load the DLL/ACM, the Problem with this (DLL /ACM ) is its a C code but this DLL using the C++ library i written a wrapper for C++ library and...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.