Sign in to follow this  
Mona777

VCOMP.LIB

Recommended Posts

Hi there, I'm getting the following message (in the linking section) when I compile my C++ program. I'm trying to use direct sound but not sure if that is related: LINK : fatal error LNK1104: cannot open file 'VCOMP.lib' can anyone help please Thank you very much

Share this post


Link to post
Share on other sites
Thank you. I did that but it made no difference. I disabled and also enabled OpenMP support and both gave me the same result in release mode.
LINK : fatal error LNK1104: cannot open file 'VCOMP.lib'
However in Debug mode in both caes(enabled and disabled) it gave me this:
LINK : fatal error LNK1104: cannot open file 'VCOMPD.lib'

Share this post


Link to post
Share on other sites
Is VCOMP.lib on your Additional Dependencies line in the linker inputs section? Do a find-all in your code for #pragma comment directives that may be using "comment(lib,'VCOMP.lib')" or the like.

Copy and paste the text from the "Command Line" sections of the C++ and Linker lists in the project properties (they should be towards the bottom of each list) and post them here.

Share this post


Link to post
Share on other sites
ah thank you for helping, I've been so stuck. OK I did the search for #pargma...
and I got:
Find all "#pragma", Subfolders, Find Results 1, "Entire Solution"
\\dfs\Users\ramonab\code\MRV\v0.5\rsrc\resources.rc(21):#pragma code_page(1252)
\\dfs\Users\ramonab\code\MRV\v0.5\rsrc\resources.rc(68):#pragma code_page(1252)
\\dfs\Users\ramonab\code\MRV\v0.5\src\audio.cpp(25):#pragma comment (lib, "dsound.lib")
Matching lines: 3 Matching files: 2 Total files searched: 21

it is looking only for "dsound.lib" which I found in my libraries.

I also went to Project->Properties->Linker->Input->additional dependencies and there I found:
winmm.lib
opengl32.lib
glu32.lib
glewd.lib
glutd.lib
cg.lib
dsound.lib
(some of them libraries that were written by someone that is no longer with us)
nothing about VCOMP.lib

do you think we can do something with this? I'm ever so grateful.

Share this post


Link to post
Share on other sites
P.S. in the debug Buildlog.htm I found:

Creating command line "link.exe @\\dfs\Users\ramonab\code\MRV\v0.5\Debug\RSP00000134562856.rsp /NOLOGO /ERRORREPORT:PROMPT"

Output Window
Linking...
LINK : fatal error LNK1104: cannot open file 'VCOMPD.lib'

Results
Build log was saved at "file://\\goldensq\dfs\Users\ramonab\code\MicReactiveVisuals\v0.5\Debug\BuildLog.htm"
MicReactiveVisuals - 1 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
P.S. maybe this will help, but doubt it in the debug Buildlog.htm I found:

Creating command line "link.exe @\\dfs\Users\ramonab\code\MRV\v0.5\Debug\RSP00000134562856.rsp /NOLOGO /ERRORREPORT:PROMPT"

Output Window
Linking...
LINK : fatal error LNK1104: cannot open file 'VCOMPD.lib'

Results
Build log was saved at "file://\\dfs\Users\ramonab\code\MicReactiveVisuals\v0.5\Debug\BuildLog.htm"
MicReactiveVisuals - 1 error(s), 0 warning(s)

Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by Mona777
ah thank you for helping, I've been so stuck. OK I did the search for #pargma...
and I got:
Find all "#pragma", Subfolders, Find Results 1, "Entire Solution"
\\dfs\Users\ramonab\code\MRV\v0.5\rsrc\resources.rc(21):#pragma code_page(1252)
\\dfs\Users\ramonab\code\MRV\v0.5\rsrc\resources.rc(68):#pragma code_page(1252)
\\dfs\Users\ramonab\code\MRV\v0.5\src\audio.cpp(25):#pragma comment (lib, "dsound.lib")
Matching lines: 3 Matching files: 2 Total files searched: 21

it is looking only for "dsound.lib" which I found in my libraries.

I also went to Project->Properties->Linker->Input->additional dependencies and there I found:
winmm.lib
opengl32.lib
glu32.lib
glewd.lib
glutd.lib
cg.lib
dsound.lib
(some of them libraries that were written by someone that is no longer with us)
nothing about VCOMP.lib

do you think we can do something with this? I'm ever so grateful.
Including "omp.h" or using other APIs which include it will also pull vcomp.lib into your app.

Share this post


Link to post
Share on other sites
You guys are stars :O) Don't know how to thank you.
Just so that we all know for future reference. I went to this site:

http://msdn.microsoft.com/en-us/library/3tz4da4a(VS.80).aspx and did this
1. Open the project's Property Pages dialog box.
2. Click the Linker folder.
3. Click the Input property page.
4. Specify a list of the libraries you want to ignore in the Ignore Specific Library property. I put VCOMP.lib in release and VCOMPD.lib in debug and voila.

Thanks again

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