Solved

Borland compiler + microsoft linker

Posted on 1998-04-08
5
329 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
Comment Utility
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
Comment Utility
No, it is impossible since Microsoft and Borland use different name mangling
0
 
LVL 22

Expert Comment

by:nietod
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now