tags:

views:

20

answers:

2

i am using GLUT 3.7.6 with VC++6.0 n on compiling a program i get following error --------------------Configuration: abc2 - Win32 Debug-------------------- Linking... LINK : fatal error LNK1104: cannot open file "abc2.exe" Error executing link.exe.

abc2.exe - 1 error(s), 0 warning(s)


i have included all the header files ...linked all the lib files bt still the result is same...!!...please guide me through this problem...THNX in advance...!!

+1  A: 

This usually happens when the output file already exists and something has a lock on it. Check to see if abc2.exe is alright running, or of some program has a file lock on it.

jay.lee
Handle.exe from Sysinternals may come in handy for determining whether another program has abc2.exe locked: http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx
bk1e
+1  A: 

You can check whether abc.exe is running using Process Explorer from sysinternals. If that's the case the link step will fail.

Also check the target file is not write-protected.

All the Microsoft tool error codes are documented online - see here for more reasons why you might see LNK1104.

Steve Townsend