* Linking with a Visual C++ Library @ 2002-06-06 8:58 Lee Mock - ID 2002-06-06 9:08 ` bjorn rohde jensen 2002-06-06 9:10 ` Oscar Fuentes 0 siblings, 2 replies; 3+ messages in thread From: Lee Mock - ID @ 2002-06-06 8:58 UTC (permalink / raw) To: 'gcc-help@gcc.gnu.org' Does anyone know if the gnu C++ compiler/linker can link with a library produced with Visual C++? Any help would be appreciated. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linking with a Visual C++ Library 2002-06-06 8:58 Linking with a Visual C++ Library Lee Mock - ID @ 2002-06-06 9:08 ` bjorn rohde jensen 2002-06-06 9:10 ` Oscar Fuentes 1 sibling, 0 replies; 3+ messages in thread From: bjorn rohde jensen @ 2002-06-06 9:08 UTC (permalink / raw) To: Lee Mock - ID; +Cc: 'gcc-help@gcc.gnu.org' Hi Lee, That is not likely to work. C++ compilers use different name mangling schemes to prevent accidental linkage of incompatible object code. You have to be very careful, if you really want to do that sort of thing. You might be able to cross link C with C++ code. Yours sincerely, Bjorn ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linking with a Visual C++ Library 2002-06-06 8:58 Linking with a Visual C++ Library Lee Mock - ID 2002-06-06 9:08 ` bjorn rohde jensen @ 2002-06-06 9:10 ` Oscar Fuentes 1 sibling, 0 replies; 3+ messages in thread From: Oscar Fuentes @ 2002-06-06 9:10 UTC (permalink / raw) To: Lee Mock - ID; +Cc: 'gcc-help@gcc.gnu.org' Lee Mock - ID <lmock@uasc-id.com> writes: > Does anyone know if the gnu C++ compiler/linker can link with a library > produced with Visual C++? Linklng C++ code? No, you can't. Think for a moment on virtual calls, exceptions and other implementation-dependent machinery and you will understand why. -- Oscar ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-06 16:10 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2002-06-06 8:58 Linking with a Visual C++ Library Lee Mock - ID 2002-06-06 9:08 ` bjorn rohde jensen 2002-06-06 9:10 ` Oscar Fuentes
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).