C++ -> fatal error LNK1181: cannot open input file 'strmiids.lib' | BaseClasses

H

Hareth

When i build the sample app baseclasses (that came with winfx sdk)
i get an error:
Error 1 fatal error LNK1181: cannot open input file 'strmiids.lib'
BaseClasses

I know where the 'strmiids.lib' is, and i even tried to refrence the file,
but that didnt help.

any ideas?
 
B

Bruno van Dooren

Hareth said:
When i build the sample app baseclasses (that came with winfx sdk)
i get an error:
Error 1 fatal error LNK1181: cannot open input file 'strmiids.lib'
BaseClasses

I know where the 'strmiids.lib' is, and i even tried to refrence the file,
but that didnt help.

Did you add the lib folder to you list of additional library folders?
project properties->configuration properties->linker->general and then
'additional library directories'.

adding a reference is only done for managed assemblies.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
B

Bruno van Dooren

i right clicked the proj, and selected prop. if that is what im supposed
to
do, but their was no "->linker->general and then
'additional library directories'."

My mistake.
In a static library project you have to look under the librarian section.

another possibility would have been to configure the folder under
tools->options->projects->C++ projects
but I prefer the per project configuration because otherwise the folders
will be used for all projects. not just this one.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
B

bindu

hi,
i tried to build the baseclasss in VS2005 and got this error.I have inluded the library files in
project-properties-librarian-general-additional library directories..
but still got the same error..
how can i fix it?
any help is appreciated..

here the error
Creating library...
LIB : fatal error LNK1181: cannot open input file '..\..\..\..\lib\x86\strmiids.lib'
Build log was saved at "file://c:\directx sdk\Samples\C++\DirectShow\BaseClasses\Release\BuildLog.htm"
BaseClasses - 1 error(s), 0 warning(s)

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
M

Mark Ingram

bindu said:
hi,
i tried to build the baseclasss in VS2005 and got this error.I have inluded the library files in
project-properties-librarian-general-additional library directories..
but still got the same error..
how can i fix it?
any help is appreciated..

here the error
Creating library...
LIB : fatal error LNK1181: cannot open input file '..\..\..\..\lib\x86\strmiids.lib'
Build log was saved at "file://c:\directx sdk\Samples\C++\DirectShow\BaseClasses\Release\BuildLog.htm"
BaseClasses - 1 error(s), 0 warning(s)

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com

Try asking in microsoft.public.win32.programmer.directx.audio / .video.
You might get a better response in there.

Cheers,
 
B

Ben Voigt

hi,
i tried to build the baseclasss in VS2005 and got this error.I have
inluded the library files in
project-properties-librarian-general-additional library directories..
but still got the same error..
how can i fix it?

Your makefile has a path specified for the library, so library search isn't
invoked. Remove the path from the linker options, so link.exe will check
the library directories for it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top