I am having the
exact same problem as reported by Kevin McIntire in "Build C++ projects" a few weeks ago.
It's one C++ project linking to another. It compiles fine in the
IDE, but I'm getting C1192 when building from
Nant.
My Nant output
includes this:
[solution]
Building 'TheLarchScanner' [Debug]
...
[attrib] No matching files or directories found.
[cl] 'C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug\TheLarchScanner.pch' does not exist, recompiling.
[cl] Compiling 1 files to 'C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug'.
[cl] Contents of C:\TEMP\tmp1253.tmp.
[cl] /c
[cl] /clr
[cl] /D "WIN32"
[cl] /D "_DEBUG"
[cl] /D " _WINDOWS"
[cl] /I "..\TheLarchBaseSupport"
[cl] /FU "C:\Centrics\Slippery\ScannerSupport\TheLarchBaseSupport\Debug\TheLarchBaseSupport.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll"
[cl] /Fd"C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug/vc70.pdb"
[cl] /Fo"C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug/"
[cl] /Fp"C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug/TheLarchScanner.pch"
[cl] /Yc"StdAfx.h"
[cl] ".\Stdafx.cpp"
[cl] /D "_MBCS"
[cl]
[cl] Starting 'cl (@"C:\TEMP\tmp1253.tmp" /Zl /EHsc /D _WINDLL /W3 /MTd /Zi /Od /nologo)' in 'C:\Centrics\Slippery\ScannerSupport\TheLarchScanner'
[cl] Stdafx.cpp
[cl] Stdafx.cpp(0) : fatal error C1192: #using failed on 'c:\centrics\Slippery\scannersupport\TheLarchbasesupport\debug\TheLarchbasesupport.dll'
[Core.Task:cl Generated Exception - [] <(null)>]
[attrib] No matching files or directories found.
[cl] 'C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug\TheLarchScanner.pch' does not exist, recompiling.
[cl] Compiling 1 files to 'C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug'.
[cl] Contents of C:\TEMP\tmp1253.tmp.
[cl] /c
[cl] /clr
[cl] /D "WIN32"
[cl] /D "_DEBUG"
[cl] /D " _WINDOWS"
[cl] /I "..\TheLarchBaseSupport"
[cl] /FU "C:\Centrics\Slippery\ScannerSupport\TheLarchBaseSupport\Debug\TheLarchBaseSupport.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.dll"
[cl] /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll"
[cl] /Fd"C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug/vc70.pdb"
[cl] /Fo"C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug/"
[cl] /Fp"C:\Centrics\Slippery\ScannerSupport\TheLarchScanner\intermediate\Debug/TheLarchScanner.pch"
[cl] /Yc"StdAfx.h"
[cl] ".\Stdafx.cpp"
[cl] /D "_MBCS"
[cl]
[cl] Starting 'cl (@"C:\TEMP\tmp1253.tmp" /Zl /EHsc /D _WINDLL /W3 /MTd /Zi /Od /nologo)' in 'C:\Centrics\Slippery\ScannerSupport\TheLarchScanner'
[cl] Stdafx.cpp
[cl] Stdafx.cpp(0) : fatal error C1192: #using failed on 'c:\centrics\Slippery\scannersupport\TheLarchbasesupport\debug\TheLarchbasesupport.dll'
[Core.Task:cl Generated Exception - [] <(null)>]
Thanks,
Steve
Brennan
