Reputation: 21
I took a VS2008 C++ project written by a developper who has left the company. When I compile the program, for each class compiled (and also for StdAfx) twice, I get the following warning:
"ClassName.obj : warning LNK4229: invalid directive '/COMMENT:@(#) $Workfile: $, $Revision: $, $Modtime: $' encountered; ignored"
The linker doesn't recognize these warnings.
Do you have an idea where is located the directive, I didin't find them in the project properties?
Thanks
Upvotes: 0
Views: 914
Reputation: 21
I finally found the #pragma comment, located among include .h and .cpp files. These files are not read by Visual Studio with the "Find" function, so I figured it out using grepwin.
Directive associated to the warning: #pragma comment( exestr, "@(#) $Workfile: $, $Revision: $, $Modtime: $" )
It seems refers to a source code version manager...
So problem solved.
Thanks for your help Phil.
Upvotes: 1