By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

How to fix Incremental Link Error in VS2005?

yabansu
P: 14
Hi all,

I implemented a basic client application. It communicates with server and works properly. Building processes succeed just by giving the following warning:

LINK : D:\DOC\Visual Studio 2005\Projects\Client01\Debug/Client01.exe not found or not built by the last incremental link; performing full link

This warning occurs when building/rebuilding the project after cleaning the intermediate and output files. If the project is once built then this warning is not given.

In the solution, I have only one project consisting of the following files(I also added wsock32.lib to Project configuration as the Linker Input in order to use the socket functions):

main.cpp
MyMessage.h
MyMessage.cpp
MyConnection.h
MyConnection.cpp

What is the reason behind this warning? It is really disturbing!

I hope someone helps me..
Thanks,
yabansu

The build log is the following:

Build Log
Build started: Project: Client01, Configuration: Debug|Win32

Command Lines
Creating temporary file "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000001396 43532.rsp" with contents[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP
".\MyMessage.cpp"
".\main.cpp"
".\MyConnection.cpp"
]
Creating command line "cl.exe @"d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000001396 43532.rsp" /nologo /errorReport:prompt"
Creating temporary file "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\TMP000002396 43532.tmp" with contents
[
1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ ".\\Debug\\Client01.exe.embed.manifest"
]
Creating command line "rc.exe /fo".\Debug\Client01.exe.embed.manifest.res" "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\TMP000002396 43532.tmp""
Creating temporary file "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000003396 43532.rsp" with contents
[
/OUT:"D:\DOC\Visual Studio 2005\Projects\Client01\Debug\Client01.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debug\Client01.exe.intermediate.mani fest"
/DEBUG /PDB:"d:\DOC\Visual Studio 2005\Projects\Client01\debug\Client01.pdb" /SUBSYSTEM:CONSOLE
/MACHINE:X86 wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"
.\Debug\MyConnection.obj""
.\Debug\main.obj""
.\Debug\MyMessage.obj"
".\Debug\Client01.exe.embed.manifest.res"
]
Creating command line "link.exe @"d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000003396 43532.rsp" /NOLOGO /ERRORREPORT:PROMPT"
Creating temporary file "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000004396 43532.rsp" with contents
[
/out:".\Debug\Client01.exe.embed.manifest" /notify_update /manifest
".\Debug\Client01.exe.intermediate.manifest"
]
Creating command line "mt.exe @"d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000004396 43532.rsp" /nologo"
Creating temporary file "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\BAT000005396 43532.bat" with contents
[
@echo Manifest resource last updated at %TIME% on %DATE% > ".\Debug\mt.dep"
]
Creating command line """d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\BAT000005396 43532.bat"""
Creating temporary file "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\TMP000006396 43532.tmp" with contents
[
1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ ".\\Debug\\Client01.exe.embed.manifest"
]
Creating command line "rc.exe /fo".\Debug\Client01.exe.embed.manifest.res" "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\TMP000006396 43532.tmp""
Creating temporary file "d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000007396 43532.rsp" with contents
[
/OUT:"D:\DOC\Visual Studio 2005\Projects\Client01\Debug\Client01.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debug\Client01.exe.intermediate.mani fest"
/DEBUG /PDB:"d:\DOC\Visual Studio 2005\Projects\Client01\debug\Client01.pdb" /SUBSYSTEM:CONSOLE
/MACHINE:X86 wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"
.\Debug\MyConnection.obj"
".\Debug\main.obj"
".\Debug\MyMessage.obj"
".\Debug\Client01.exe.embed.manifest.res"
]
Creating command line "link.exe @"d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\RSP000007396 43532.rsp" /NOLOGO /ERRORREPORT:PROMPT"

Output Window
Compiling...
MyConnection.cpp
main.cpp
MyMessage.cpp
Generating Code...
Compiling manifest to resources...
Linking...
LINK : D:\DOC\Visual Studio 2005\Projects\Client01\Debug\Client01.exe not found or not built by the last incremental link; performing full link
Embedding manifest...

Results
Build log was saved at "file://d:\DOC\Visual Studio 2005\Projects\Client01\Client01\Debug\BuildLog.htm "
Client01 - 0 error(s), 0 warning(s)
Dec 26 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
OK basically you can ignore this error becaus in fact it is a warning.

In an incremental link the linker just replaces the code for the objects in the exe that have changed, it is quicker than a full link which is why it is done.

In a full link the executeable is create from the ground up.

This warning message is issued when you have deleted objects or other files that mean that the linker can not perform an incremental link. It can always do a full link. The warning message is just telling you that the information required for an incremental link is missing so the linker has opted to do a full link.
Dec 26 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.