473,404 Members | 2,137 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,404 software developers and data experts.

multiple symbols at link time

Hi,

I have a quesion about how to deal with multiple symbols at link time.

I have a function name that must be a certain name and it is the same name
as in a custom library that I use.

I want to use my function and not the function in the custom library. So
how do I make sure that the linker will only see my function name and not
the other library one hence taking care of the multiple symbol name?

Thanks in advance for any guidance.
Jul 22 '05 #1
1 1535
"john smith" <pr**************@charter.net> wrote in message
news:10*************@corp.supernews.com...
I have a quesion about how to deal with multiple symbols at link time.

I have a function name that must be a certain name and it is the same name
as in a custom library that I use.

I want to use my function and not the function in the custom library. So
how do I make sure that the linker will only see my function name and not
the other library one hence taking care of the multiple symbol name?


This may or may not be possible, depending on your compiler/platform.
You need to ask on a specific forum.

But why does your function need to have the exact same name?
The best solution will depend on what exactly you need to do.
For example, a solution might be to put your function in a namespace:
namespace MyCode { void f(); }
using MyCode::f;
hth,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <> http://www.brainbench.com
Jul 22 '05 #2

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

Similar topics

6
by: x. zhang | last post by:
Hi Guys, We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of...
5
by: nzanella | last post by:
Hello, I have two .cpp files. The first one contains: Foo *foo; and in the second one contains: extern Foo foo;
1
by: AP | last post by:
Hi, Does anyone have suggestions (maybe options etc) as to how I could improve my compile and link time in VC7.1. I'm seeing a pretty bad deterioration from VC6. BTW, I use pre-compiled headers....
1
by: Bruno van Dooren | last post by:
Hi, i am using a third party static library (.lib) that wraps a class interface around an old C-style dll. in the static library they use the STL for some stuff i don't know about. in my own...
12
by: baibaichen | last post by:
i know that pImpl idiom can decrease compile time, but Is there any good practice/idiom to decrease link time? any reference or any idea is appreciated thanks
8
by: yossi.kreinin | last post by:
Hi! When are multiple definitions of global variables with the same name considered legal in C, and how is it different from C++? It appears that in terms of assembly language, some C...
5
by: Ed | last post by:
Hello, dear all, In the VS2005, Project Release Configuration, the default option of "General | Whole Program Optimization" is "Use Link Time Code Generation". I find when use this option, the...
2
by: jbanik10 | last post by:
. What errors are caught at compile time vs link time?
1
by: Akino877 | last post by:
Hi, I am trying to compile the following program : #include <stdio.h> #include <time.h> int main( ) { char dateStr ;
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: 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
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
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
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,...
0
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...

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.