472,354 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 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 1485
"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: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.