warning LNK4221 with VS2005 but not with VS2003

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I get this warning

yywcsskp.obj : warning LNK4221: no public symbols found; archive member
will be inaccessible

when I compile a static library with VS2005. But the same project with
VS2003 doesn't give this warning.

And this warning seem to cause me problem when I want to link an
application with this library. I got some unresolved external symbol
like this

my_lexer.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall yl::yywlexer::yyerror(unsigned short const *)"
(?yyerror@yywlexer@yl@@UAEXPBG@Z)

Can somebody help me ? Is it a VS2005 known bug ?

Eric

.



Relevant Pages