Sign in to follow this  
Sawsan Emam

Warning LINK4098:

Recommended Posts

hi everyone, i hope you all are OK ... i am using VS2008 and actually i founded this warning followed by some errors "Unresolved External Symbols" .. which i think they are exist because of the warning ... i wish if anyone could help me .. the Warning is: LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library ... Thanks in advance: Sawsan A.Emam

Share this post


Link to post
Share on other sites
Unresolved external symbols is compiler speak for I CANT FIND THE LIBRARY. You need to link in the correct library. Give us a dump of the errors and at least SOMEBODY will be able to figure out which library you are using.

As for the warning, IDK. Its possible you link the wrong library.

Share this post


Link to post
Share on other sites
first, thank you for your reply

The Error Message saying:

CTextureRenderer.obj : error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseRenderer::FindPin(wchar_t const *,struct IPin * *)" (?FindPin@CBaseRenderer@@UAGJPB_WPAPAUIPin@@@Z)

Thanks in advance,

Sawsan A.Emam

Share this post


Link to post
Share on other sites
Once again, The Lounge is for off topic discussion. If you post another technical question in The Lounge I'm just going to close it so that it can't receive any responses, you should choose one of the technical forums - I'm going to move you to For Beginners.

Share this post


Link to post
Share on other sites
This probably is due to that you didn't implement the function 'FindPin'...
to make a simple test, just try to implement even an 'empty' one, e.g:

long CBaseRenderer::FindPin(...) //just write your arguments...
{
return 0;
}






If this function is pure virtual, then you'll have to implement it in the drived class before you can use it...

[Edited by - yehdev_cc on February 20, 2008 9:50:46 PM]

Share this post


Link to post
Share on other sites
the function is already implemented in one of the Direct Show base classes, the file name if renbase.CPP and the function declaration is:

STDMETHODIMP CBaseRenderer::FindPin(LPCWSTR Id, IPin **ppPin)
{
CheckPointer(ppPin,E_POINTER);

if (0==lstrcmpW(Id,L"In")) {
*ppPin = GetPin(0);
ASSERT(*ppPin);
(*ppPin)->AddRef();
} else {
*ppPin = NULL;
return VFW_E_NOT_FOUND;
}
return NOERROR;
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this