Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I am tryig to change a 32bits driver to 64bits,here is the problem, i can not correct this:
the error shows below:
MSIL
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
Updated 11-May-11 22:36pm
v3

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).
 
Share this answer
 
Comments
markfilan 12-May-11 20:52pm    
you mean i'd better us DDK build environment?
Albert Holguin 12-May-11 20:56pm    
you can do it in studio too, just have to know what needs to get set...
markfilan 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 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 18-May-11 2:00am    
I read that ,but i didi't find anything that is useful.is there anything i missed?
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.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900