Solved

Borland compiler + microsoft linker

Posted on 1998-04-08
5
331 Views
Last Modified: 2010-04-10
Can borland c/c++ obj files be fed into a microsoft linker?
like this ---> bcc 1.c then link 1.obj

bye
0
Comment
Question by:whluk
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1184146
Why would you want to do this?  It might be possible but, because of name decoration,  it is not possible to link together files produced by the two different compilers.  
0
 
LVL 7

Accepted Solution

by:
galkin earned 10 total points
ID: 1184147
No, it is impossible since Microsoft and Borland use different name mangling
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184148
My thought was that would prevent limiing together two object files produced by the differnet compilers.  It should not prevent one linker from linking two (or more) object files produced on the same compiler.  I'm not saying that it is possible (i suspect it is not), but I don't think name mangling will really be a problem.
0
 
LVL 7

Expert Comment

by:galkin
ID: 1184149
I think linker when resolving function addresses loks for specific name using name mangling speicific to this linker. If object file conatins function produced by another compiler linker will not find it.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184150
In most cases the names in the object file will be already mangled.  That is, the compiler should produce an object file that contains mangled names and the linker does not need to know about the mangling algorythm.  However this may not be true in the case of templates.  In addition their may be problems involving the run-time libraray and initialization of static objects.  But in general, name mangeling shouldn't be a problem.  However, even if it is only a little problem, that is enough.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Losing latter half of command line in Visual Studio C++ online program 10 80
convert char array to number in c 5 85
Header of docx file 17 103
designing in object programming 12 79
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question