Solved

Borland compiler + microsoft linker

Posted on 1998-04-08
5
330 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to convert c++ code to Android App 3 82
operator overload: incompatible type and too many params 5 62
Why isn't object file created? 6 41
c++, dynamic object by json 1 22
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  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 …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 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

24 Experts available now in Live!

Get 1:1 Help Now