Static library linker problem

J

Joske

Hi,

I'm having a similar problem as Scott. A static library
with managed C++ functions fails to link in.

See http://groups.google.be/groups?q=managed+C+%
2B+static+library&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-
8&selm=uXE2ZMiqDHA.2644%40TK2MSFTNGP09.phx.gbl&rnum=14
(BTW why can I find scott's post with Google and not using
the msdn web-interface? It seems to have vanished)

I've created a static library using VC++ 7.0. I builds
fine, but when I try to use it the linker complains about
unresolved externals. I've traced the linker progress to
make sure that the .lib file was found. Curiuously free
functions are found, while class member functions are not.

Is this a compiler problem? Something with the name
mangling? I've dumped the contents of the produced lib
using dumpbin and it appears that the symbols are in there.

Any help is appreciated,

Joske
 
S

Scott

Joske,

Has anyone responded to you on this? I'm ready to call MS Support to get an
answer.

Scott L.
 
R

Ronald Laeremans [MSFT]

Sorry that I don't have a better answer, but static libs of MC++ code are
not supported at all in the 7.0 and 7.1 releases.

Due to the implementation of IJW in those releases the linker cannot handle
resolving references to managed functions from a static lib.

Ronald Laeremans
Visual C++ team
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top