Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

Borland compiler + microsoft linker

Can borland c/c++ obj files be fed into a microsoft linker?
like this ---> bcc 1.c then link 1.obj

bye
0
whluk
Asked:
whluk
  • 3
  • 2
1 Solution
 
nietodCommented:
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
 
galkinCommented:
No, it is impossible since Microsoft and Borland use different name mangling
0
 
nietodCommented:
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
 
galkinCommented:
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
 
nietodCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now