Click to See Complete Forum and Search --> : Static linking of Managed C++ class


JanRichardson
August 19th, 2003, 05:45 AM
Is it possible to create a managed c++ class in a static lib.

As whenever i compile the static lib i get

app.res : warning LNK4221: no public symbols found; archive member will be inaccessible

and when i try to link against this i get

LINK : error LNK2020: unresolved token (06000032)

errors

anyone got any ideas.

Thanks for any help anyone can give me.

MooNull
August 19th, 2003, 07:43 PM
The first error seems to refer to the fact that you are trying to compile the code without having any accessible symbols [class, structs, etc].

The second error looks to me as a common linking error. Did you forget to define any functions...?

Of course, I do reserve the right to be wrong.

I'm going to look into the viability of compiling managed C++ as a static lib.