For Programmers: Free Programming Magazines  


Home > Archive > VC Language > November 2005 > LINK flag equivalent to -Bsymbolic









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author LINK flag equivalent to -Bsymbolic
newbie

2005-11-23, 3:59 am

I have a "C" shared library that statically links openssl and a "C"
application that uses it also statically links openssl. I want to keep
the two instances separate. On solaris and linux the -Bsymbolic flag to
the linker for the shared library serves this purpose. Could someone
let me know what the equivalent linker flag in for microsoft LINK
linker.

Igor Tandetnik

2005-11-23, 7:59 am

"newbie" <jyothik@gmail.com> wrote in message
news:1132720307.151125.277750@g49g2000cwa.googlegroups.com
> I have a "C" shared library that statically links openssl and a "C"
> application that uses it also statically links openssl. I want to keep
> the two instances separate.


If by "shared library" you mean a DLL, then your wish is already
granted. In fact, in Windows there is no way to do otherwise - you can't
have a static library somehow shared between multiple modules (where
"module" is an EXE or a DLL). If you want to share a piece of code this
way, it has to be packaged in its own DLL.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com