EDN Admin
Well-known member
Hello ,<br/> <br/> I wrote a simple Hello world program. I get this error all the time(also in Visual Studio 2005 and Visual Studio 2008):<br/> <br/> Error 1 fatal error LNK1104: cannot open file .Debugmain.obj 2 2<br/> <br/> Where main is the simple hello world program, whether its C++ or C. I tried reinstalling many times. No luck.<br/> <br/> I also tried following some of the indications on the site, but nothings works.<br/> <br/> I will also put here the content of the built log and the content of the Linker/ Command line.<br/> <br/> Soo, in the built log i get this:<br/>
<table border=0 cellspacing=0 cellpadding=0>
<tbody>
<tr>
<td width="*
<pre>Creating temporary file "c
ocuments and SettingssimonaDesktopC programmingtesttestDebugRSP00000631321764.rsp" with contents<br/>
[<br/>
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\" /Fd"Debugvc90.pdb" /W3 /c /ZI /TP ".t.cpp"<br/>
]<br/>
Creating command line "cl.exe @"c
ocuments and SettingssimonaDesktopC programmingtesttestDebugRSP00000631321764.rsp" /nologo /errorReport
rompt"<br/>
Creating temporary file "c
ocuments and SettingssimonaDesktopC programmingtesttestDebugRSP00000731321764.rsp" with contents<br/>
[<br/>
/OUT:"C
ocuments and SettingssimonaDesktopC programmingtestDebugtest.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debugtest.exe.intermediate.manifest" /MANIFESTUAC:"level=asInvoker uiAccess=false" /DEBUG /PDB:"C
ocuments and SettingssimonaDesktopC programmingtestDebugtest.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib<br/>
<br/>
".Debugt.obj"<br/>
<br/>
".Debugtest.exe.embed.manifest.res"<br/>
]<br/>
Creating command line "link.exe @"c
ocuments and SettingssimonaDesktopC programmingtesttestDebugRSP00000731321764.rsp" /NOLOGO /ERRORREPORT
ROMPT"<br/>
[/code]
</td>
</tr>
</tbody>
</table>
<table border=0 width="100%" bgcolor="#dfdfe5
<tbody>
<tr>
<td><span style="font-family:arial;font-size:x-small Output Window </td>
</tr>
</tbody>
</table>
<table border=0 cellspacing=0 cellpadding=0>
<tbody>
<tr>
<td width=0 bgcolor="#ededf5 </td>
<td width=0 bgcolor="#ffffff </td>
<td width="*
<pre>Compiling...<br/>
Linking...<br/>
LINK : fatal error LNK1104: cannot open file .Debugt.obj<br/>
[/code]
</td>
</tr>
</tbody>
</table>
<br/> And in the Linker/ Command Line i have this:<br/> <br/> /OUT:"C
ocuments and SettingssimonaMy DocumentsVisual Studio 2008Projects2Debug2.exe" /NOLOGO /MANIFEST /MANIFESTFILE:"Debug2.exe.intermediate.manifest" /MANIFESTUAC:"level=asInvoker uiAccess=false" /DEBUG /PDB:"C
ocuments and SettingssimonaMy DocumentsVisual Studio 2008Projects2Debug2.pdb" /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT
ROMPT kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib<br/> <br/> <br/> Also, if i follow the indications on msdn, on creating a new simple program using Visual studio Command prompt, i observed that the command: " CL filename.cpp " it doesnt do anything. I get no errors, still no executable, nothing.<br/> <br/> Help , please??<br/> <br/> Thanks
View the full article
<table border=0 cellspacing=0 cellpadding=0>
<tbody>
<tr>
<td width="*
<pre>Creating temporary file "c

[<br/>
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\" /Fd"Debugvc90.pdb" /W3 /c /ZI /TP ".t.cpp"<br/>
]<br/>
Creating command line "cl.exe @"c


Creating temporary file "c

[<br/>
/OUT:"C


<br/>
".Debugt.obj"<br/>
<br/>
".Debugtest.exe.embed.manifest.res"<br/>
]<br/>
Creating command line "link.exe @"c


[/code]
</td>
</tr>
</tbody>
</table>
<table border=0 width="100%" bgcolor="#dfdfe5
<tbody>
<tr>
<td><span style="font-family:arial;font-size:x-small Output Window </td>
</tr>
</tbody>
</table>
<table border=0 cellspacing=0 cellpadding=0>
<tbody>
<tr>
<td width=0 bgcolor="#ededf5 </td>
<td width=0 bgcolor="#ffffff </td>
<td width="*
<pre>Compiling...<br/>
Linking...<br/>
LINK : fatal error LNK1104: cannot open file .Debugt.obj<br/>
[/code]
</td>
</tr>
</tbody>
</table>
<br/> And in the Linker/ Command Line i have this:<br/> <br/> /OUT:"C



View the full article