By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,495 Members | 1,298 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,495 IT Pros & Developers. It's quick & easy.

Static library linker problem

P: n/a
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%
2B+static+library&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-
8&selm=uXE2ZMiqDHA.2644%40TK2MSFTNGP09.phx.gbl&rnu m=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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Joske,

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

Scott L.

"Joske" <jo***@work.tv> wrote in message
news:3e****************************@phx.gbl...
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%
2B+static+library&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-
8&selm=uXE2ZMiqDHA.2644%40TK2MSFTNGP09.phx.gbl&rnu m=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

Nov 16 '05 #2

P: n/a
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

"Scott" <Sc*********@UniversalComputerSys.Com> wrote in message
news:e5**************@tk2msftngp13.phx.gbl...
Joske,

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

Scott L.

"Joske" <jo***@work.tv> wrote in message
news:3e****************************@phx.gbl...
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%
2B+static+library&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-
8&selm=uXE2ZMiqDHA.2644%40TK2MSFTNGP09.phx.gbl&rnu m=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


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.