Game Development Community

cannot compile even after multiple regenerations.

by Rex Hiebert · in Torque 3D Professional · 07/02/2009 (7:45 am) · 3 replies

I'm getting a few fatal error even after running the regenerating
they are:

fatal error LNK1181: cannot open input file 'd3d8.lib'
14>LINK : fatal error LNK1181: cannot open input file '..\..\..\game\MyArctictest_001.lib'

16>LINK : fatal error LNK1181: cannot open input file '..\..\..\game\shellarctictest_001.lib'

15>..\..\..\web\source\npplugin\npWebGamePlugin.cpp : fatal error C1083: Cannot open compiler generated file: '../../Link/VC2k8.Release.Win32/NP ShellArcticTest_001 Plugin\npWebGamePlugin.sbr': Permission denied

15>..\..\..\web\source\common\webCommon.cpp : fatal error C1083: Cannot open compiler generated file: '../../Link/VC2k8.Release.Win32/NP ShellArcticTest_001 Plugin\webCommon.sbr': Permission denied

any ideas?

#1
07/04/2009 (4:41 pm)
Are you running in Visual Studio? If so, did you set up where to look for libraries? In Tools/Options/Projects and Solutions/VC++ directories there is a drop down menu for all the various things you might need. Go to libary files and make sure the directory that contains d3d8.lib is there (or that you are referencing the correct environment variable which is an easier way to do it if you update directX often).

Also, did you download the directX SDK?

Judy
#2
07/05/2009 (1:51 am)
"15>..\..\..\web\source\common\webCommon.cpp : fatal error C1083: Cannot open compiler generated file: '../../Link/VC2k8.Release.Win32/NP ShellArcticTest_001 Plugin\webCommon.sbr': Permission denied"

Try rebooting, then deleting that file, then trying to build again.

If that fixes it, the problem is the compiler is hanging and retaining a lock on the file when it should release it. You can use something like http://ccollomb.free.fr/unlocker/ to unlock it w/o having to reboot.
#3
07/06/2009 (8:22 am)
Yes, we are using Visual Studio. Since we hadn't changed any of the C++ code I just created a new project and used that. It compiled without any trouble and the d3d8 folder isn't even shown in this project. It may have been something that was still in the previous beta. Don't know. Just happy that it works. Thanks for your suggestions.