Sysprogs forums › Forums › VisualDDK/VirtualKD discussion › Compile Errors
- This topic has 1 reply, 2 voices, and was last updated 13 years, 4 months ago by jlam9012.
-
AuthorPosts
-
July 5, 2011 at 15:13 #324AnonymousParticipant
Hey. I’m getting these errors when compiling a simple project with VC++ 2010 and VisualDDK.
1>
Build started: Project: TestDriver, Configuration: Release Win32
1>Build started 05/07/2011 16:03:56.
1>Build:
1> OACR monitor running already
1> path contains nonexistant c:program files (x86)microsoft visual studio 10.0common7toolsbin, removing
1> BUILD: Compile and Link for x86
1>
1> BUILD: Loading c:winddk7600.16385.1build.dat…
1>
1> BUILD: Computing Include file dependencies:
1>
1> BUILD: Start time: Tue Jul 05 16:03:56 2011
1> BUILD: Examining c:usersadmindocumentsvisual studio 2010projectstestdrivertestdriver directory for files to compile.
1>
1> c:usersadmindocumentsvisual studio 2010projectstestdrivertestdriver
1>
1> BUILD: Saving c:winddk7600.16385.1build.dat…
1>
1> BUILD: Compiling and Linking c:usersadmindocumentsvisual studio 2010projectstestdrivertestdriver directory
1>
1> Configuring OACR for ‘root:x86fre’ –
1> _NT_TARGET_VERSION SET TO WINXP
1> 1>errors in directory c:usersadmindocumentsvisual studio 2010projectstestdrivertestdriver
1>c:winddk7600.16385.1binmakefile.new(7117): error U1087: cannot have : and :: dependents for same target
1> 1>nmake.exe /nologo BUILDMSG=Stop. -i /nologo /f c:winddk7600.16385.1binmakefile.def BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR= failed – rc = 2
1>
1> BUILD: Finish time: Tue Jul 05 16:03:57 2011
1> BUILD: Done
1>
1>
1>
1> 0 files compiled – 1 Warning – 2 Errors
1>
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.MakeFile.Targets(38,5): error MSB3073: The command “call C:WINDDK7600.16385.1binsetenv.bat C:WINDDK7600.16385.1 fre wxp
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.MakeFile.Targets(38,5): error MSB3073: cd /d c:Usersadmindocumentsvisual studio 2010ProjectsTestDriverTestDriver
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.MakeFile.Targets(38,5): error MSB3073: build” exited with code 1.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.02
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========#include
PDEVICE_OBJECT DeviceObject = NULL;
void DriverUnload(PDRIVER_OBJECT pDriverObject)
{
IoDeleteDevice(DeviceObject);
DbgPrint("Driver unloadedn");
}
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
UNICODE_STRING DeviceName;
NTSTATUS Status;
PCWSTR szDeviceName = L"\Device\DeviceDriver";
DbgPrint("Driver loadedn");
RtlInitUnicodeString(&DeviceName, szDeviceName);
Status = IoCreateDevice(DriverObject, 0, &DeviceName, FILE_DEVICE_NULL, 0, FALSE, &DeviceObject);
if (Status == STATUS_SUCCESS)
{
DbgPrint("Device createdn");
}
else
DbgPrint("IoCreateDevice failed: %xn", Status);
DriverObject->DriverUnload = DriverUnload;
return STATUS_SUCCESS;
}The same code compiles fine in the x86 Checked Build Environment.
July 7, 2011 at 16:25 #1888jlam9012Participant>c:winddk7600.16385.1binmakefile.new(7117): error U1087: cannot have : and :: dependents for same target
I was getting something like this too and it means that you can’t have spaces in your build directory.
c:usersadmindocumentsvisual studio 2010projectstestdrivertestdriver
The spacing with “visual studio 2010” might be giving you the error. Put your project in C: or someplace else without any spaces.
-
AuthorPosts
- You must be logged in to reply to this topic.