Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Driver
I am tryig to change a 32bits driver to 64bits,here is the problem, i can not correct this:
the error shows below:
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Dispatch.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Init.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Pnp.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Usb.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Generating Code...
It seemed that I didn't set the version of architecture, but I already set that by preprocessor.
I used VS2010&DDK.
So where is the problem? I appreciate your help.
Posted 11-May-11 23:20pm
Edited 11-May-11 23:36pm
Prerak Patel140.5K
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I don't have a copy of the DDK but my suggestion would be to look in D:\WinDDK\7600.16385.1\inc\api\ntdef.h around line 155 and try to figure out what preprocessor definition you have not set.
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

The DDK expects some environment variables to be set, see this:
http://mcdermottcybersecurity.com/articles/64-bit-device-driver-development[^]
 
Now, you can use the building tools that the DDK uses which already set these variables for you or you can just set them yourself by whatever means in Studio (run script as pre-event or whatever).
  Permalink  
Comments
markfilan at 12-May-11 20:52pm
   
you mean i'd better us DDK build environment?
Albert Holguin at 12-May-11 20:56pm
   
you can do it in studio too, just have to know what needs to get set...
markfilan at 12-May-11 21:28pm
   
I googled some answers about how to set in studio ,but it's not working ,i checked for a lot of times ,that "no target architecture"error was always appeared.frustrating......
Albert Holguin at 13-May-11 10:22am
   
Do you know how to set environment variables? Did you read the article I linked? ...then you should know what needs to be set to get it working...
markfilan at 18-May-11 2:00am
   
I read that ,but i didi't find anything that is useful.is there anything i missed?
markfilan at 20-May-11 1:44am
   
i used DDK build and successed ,i know where i was wrong. i included wrong files. thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 12 May 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100