473,769 Members | 5,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1548
"john smith" <pr************ **@charter.net> wrote in message
news:10******** *****@corp.supe rnews.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
10570
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 course, we can use <input type=file ...> multiple times and then submit once. But this is not what I want, because we have to click "browse" button several times to select multiple files before submit in this way.) "Upload multiple files PER TIME", I...
5
1735
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
1334
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. Thanks in advance. AP.
1
1113
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 code, i also use the STL, for basic_string for example. at link time, i get a lot of errors like: msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: __thiscall
12
5916
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
3311
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 definitions are translated to "weak" symbols, in which case multiple definitions are merged by the linker, while some become "normal" symbols, triggering linker errors in case they are defined more then once. Is it true that in C++, multiple definitions...
5
3194
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 size of the objects and output is vary large. The object use this option, which size is 10 times of the one w/o it. Is this normal?
2
2060
by: jbanik10 | last post by:
. What errors are caught at compile time vs link time?
1
5298
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
9583
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9990
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7406
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
6668
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
5297
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...
0
5445
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3955
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
3560
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.