Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi,
I am getting error of "No Target architecture defined" in driver entry. i am trying to write driver entry for wireless miniport in vc++ and wdk on vista plateform. But this error fed up me.
so pls help me out.


1>------ Rebuild All started: Project: DriverMiniport, Configuration: checked Win32 ------
1>Deleting intermediate and output files for project 'DriverMiniport', configuration 'checked|Win32'
1>Compiling...
1>miniport.c
1>c:\winddk\7600.16385.0\inc\ddk\wdm.h(14197) : fatal error C1189: #error : "No target architecture defined"
1>protocol.c
1>c:\winddk\7600.16385.0\inc\ddk\wdm.h(14197) : fatal error C1189: #error : "No target architecture defined"
1>vwifi.c
1>c:\winddk\7600.16385.0\inc\ddk\wdm.h(14197) : fatal error C1189: #error : "No target architecture defined"
1>Generating Code...
1>Build log was saved at "file://e:\DriverMiniport\checked\BuildLog.htm"
1>DriverMiniport - 3 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Posted
Updated 17-Oct-20 9:20am
v2

By a double click on a error line
you would see its source... :)

Probably you will need to define something like _X86_
(see, for instance "The Old New Thing: You already know what your target architecture is (or at least you should)"). :)
 
Share this answer
 
v2
hi,i met the exactly problem ,can you tell me how you solve it?i'm very appreciate.please......
 
Share this answer
 
Here's a decent tutorial on what you're experiencing:
http://mcdermottcybersecurity.com/articles/64-bit-device-driver-development[^]

The DDK files are dependent on environment variables set by other files (read article and you'll see what I mean).
 
Share this answer
 
I fixed mine on a project that compile without any problem but after a crash out of nowhere cropped up this same error.

I fixed it by defining _AMD64_ in the Preprocessor definitions
 
Share this answer
 

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