DirectX9 SDK link error :( Help!

Author
stephencxj
Max Output Level: -90 dBFS
  • Total Posts : 4
  • Joined: 2005/07/13 09:47:36
  • Status: offline
2005/07/13 10:03:54 (permalink)

DirectX9 SDK link error :( Help!

Hi, I am testing the sample code from DX90SDK\Samples\C++\DirectShow\Filters\PushSource using VC.NET 2003.

Because strmbasd.lib is needed, so I add the the Additional Library Directories as: C:\DX90SDK\Samples\C++\DirectShow\BaseClasses\Debug (I find strmbasd.lib in this folder).

But there are lots of errors.

Anyone can help me? What is the problem? What should I do?

Thanks a lot!

PushSource error LNK2001: unresolved external symbol _CLSID_FilterMapper
PushSource fatal error LNK1120: 37 unresolved externals
PushSource error LNK2001: unresolved external symbol _CLSID_FilterMapper
PushSource error LNK2001: unresolved external symbol _CLSID_FilterMapper2
PushSource error LNK2001: unresolved external symbol _CLSID_MemoryAllocator
PushSource error LNK2001: unresolved external symbol _CLSID_SeekingPassThru
PushSource error LNK2001: unresolved external symbol _FORMAT_VideoInfo
PushSource error LNK2001: unresolved external symbol _FORMAT_VideoInfo
PushSource error LNK2001: unresolved external symbol _FORMAT_VideoInfo
PushSource error LNK2001: unresolved external symbol _FORMAT_VideoInfo2
PushSource error LNK2001: unresolved external symbol _FORMAT_WaveFormatEx
PushSource error LNK2001: unresolved external symbol _IID_IAMovieSetup
PushSource error LNK2001: unresolved external symbol _IID_IAMovieSetup
PushSource error LNK2001: unresolved external symbol _IID_IBaseFilter
PushSource error LNK2001: unresolved external symbol _IID_IBaseFilter
PushSource error LNK2001: unresolved external symbol _IID_IEnumMediaTypes
PushSource error LNK2001: unresolved external symbol _IID_IEnumPins
PushSource error LNK2001: unresolved external symbol _IID_IFilterGraph2
PushSource error LNK2001: unresolved external symbol _IID_IFilterMapper
PushSource error LNK2001: unresolved external symbol _IID_IFilterMapper
PushSource error LNK2001: unresolved external symbol _IID_IFilterMapper2
PushSource error LNK2001: unresolved external symbol _IID_IMediaEventSink
PushSource error LNK2001: unresolved external symbol _IID_IMediaFilter
PushSource error LNK2001: unresolved external symbol _IID_IMediaSample
PushSource error LNK2001: unresolved external symbol _IID_IMediaSample2
PushSource error LNK2001: unresolved external symbol _IID_IMemAllocator
PushSource error LNK2001: unresolved external symbol _IID_IMemAllocatorCallbackTemp
PushSource error LNK2001: unresolved external symbol _IID_IMemInputPin
PushSource error LNK2001: unresolved external symbol _IID_IPin
PushSource error LNK2001: unresolved external symbol _IID_IPin
PushSource error LNK2001: unresolved external symbol _IID_IPinConnection
PushSource error LNK2001: unresolved external symbol _IID_IPinFlowControl
PushSource error LNK2001: unresolved external symbol _IID_ISeekingPassThru
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_ARGB32
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_MPEG1Packet
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_Overlay
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB1
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB24
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB24
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB32
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB32
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB4
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB555
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB555
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB565
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB565
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB8
PushSource error LNK2001: unresolved external symbol _MEDIASUBTYPE_RGB8
PushSource error LNK2001: unresolved external symbol _MEDIATYPE_Audio
PushSource error LNK2001: unresolved external symbol _MEDIATYPE_Audio
PushSource error LNK2001: unresolved external symbol _MEDIATYPE_Video
PushSource error LNK2001: unresolved external symbol _MEDIATYPE_Video
PushSource error LNK2001: unresolved external symbol _MEDIATYPE_Video
PushSource error LNK2019: unresolved external symbol _FORMAT_VideoInfo referenced in function "public: long __thiscall CBaseWindow::GetWindowHeight(void)" (?GetWindowHeight@CBaseWindow@@QAEJXZ)
PushSource error LNK2019: unresolved external symbol _FORMAT_VideoInfo referenced in function "public: virtual long __thiscall CPushPinBitmapSet::GetMediaType(class CMediaType *)" (?GetMediaType@CPushPinBitmapSet@@UAEJPAVCMediaType@@@Z)
PushSource error LNK2019: unresolved external symbol _MEDIATYPE_Video referenced in function "public: long __thiscall CBaseWindow::GetWindowWidth(void)" (?GetWindowWidth@CBaseWindow@@QAEJXZ)
PushSource error LNK2019: unresolved external symbol _MEDIATYPE_Video referenced in function "public: virtual long __thiscall CPushPinBitmapSet::GetMediaType(class CMediaType *)" (?GetMediaType@CPushPinBitmapSet@@UAEJPAVCMediaType@@@Z)
#1

4 Replies Related Threads

    Yasoo
    Max Output Level: -74 dBFS
    • Total Posts : 844
    • Joined: 2003/11/15 18:20:11
    • Status: offline
    RE: DirectX9 SDK link error :( Help! 2005/07/13 12:46:17 (permalink)
    Go to Project->Options, the "Link" tab. In the textbox labelled "Object/Library Modules", add the filename for each .lib (in this case "strmbasd.lib") and/or .obj you want to link the project with. Separate each one with spaces. If they aren't found in your paths, you can put the full path for each one (use quotes if spaces in the path).
    #2
    stephencxj
    Max Output Level: -90 dBFS
    • Total Posts : 4
    • Joined: 2005/07/13 09:47:36
    • Status: offline
    RE: DirectX9 SDK link error :( Help! 2005/07/21 05:33:39 (permalink)
    Hi, Yasoo, Thank you very much!

    But I am using .Net 2003. As mentioned before, I went to Project -> Properties -> Linker -> General, and the path of strmbasd.lib.

    And I also add the path of msvcrtd.lib.

    But finally, the error is :

    PushSource fatal error LNK1181: cannot open input file 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib.obj'


    I can not find lib.obj file. Any suggestion?

    Thank you
    #3
    Yasoo
    Max Output Level: -74 dBFS
    • Total Posts : 844
    • Joined: 2003/11/15 18:20:11
    • Status: offline
    RE: DirectX9 SDK link error :( Help! 2005/07/28 13:28:47 (permalink)
    I don't think it matters which version you are using. There's gonna be somewhere where you tell the compiler what object files to link to. Wherever that is, you can put them individually there. Unless it's a project setting, adding paths for every object file you need to link to in all your projects will just add clutter.

    Not sure about the lib.obj file. You said you can't find it. How did you look for it? Did you do a file search on that root directory and/or on your entire hard drive?
    post edited by Yasoo - 2005/07/28 13:32:59
    #4
    stephencxj
    Max Output Level: -90 dBFS
    • Total Posts : 4
    • Joined: 2005/07/13 09:47:36
    • Status: offline
    RE: DirectX9 SDK link error :( Help! 2005/08/08 00:27:15 (permalink)
    Yasoo, I tried to find it using a file search on my harddrive, but can not find it.

    Then I asked others for help.

    Now it is solved.

    First, Open dshow.sln, right click BaseClasses, select Properties,

    in BaseClasses Property Pages

    Configuration Properties
    Librarian
    Command Line
    Additional Options: ( I add the following)
    ../../../../lib/strmiids.lib /nodefaultlib

    rebuild

    then it is done.

    Hope it is helpful for those who have the same problem.

    Thanks
    #5
    Jump to:
    © 2024 APG vNext Commercial Version 5.1