Author Topic: Selecting Compiler for Kernel Mode Driver  (Read 9017 times)

h3llh0l3

  • Guest
Selecting Compiler for Kernel Mode Driver
« on: May 22, 2009, 09:22:42 pm »
Hi all,

I have just downloaded and installed Code::Blocks on windows. When I try to create a project for kernel mode driver, it prompts me to choose a compiler but does not show the WinDDK in the list. Is there a way I can point to use WinDDK(I was not able to find a way)?

TIA.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Selecting Compiler for Kernel Mode Driver
« Reply #1 on: May 22, 2009, 11:43:23 pm »
The WinDDK is NOT a compiler; this list is not for beginners to C/C++ programing.

I suggest you ask your [basic C/C++] questions on a more correct site.

Something like http://cboard.cprogramming.com/

Edit: kernel mode driver and WinDDK are both Microsoft items so I suggest using an MSVC++ Microsoft Visual C++ Compiler. WinDDK means Windows Driver Development Kit.
Note: It is possible that the WinDDK come with an MSVC++ Compiler like some/all PSDK Platform Software Development Kit does.

IIRC, Visual Studio 2005/2008 is what the MSVC++ is called in Code::Blocks. Note, Code::Blocks does NOT come with an MSVC++ Compiler, but the auto-detect might find one it is is already installed.

Tim S

« Last Edit: May 23, 2009, 01:13:35 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Selecting Compiler for Kernel Mode Driver
« Reply #2 on: May 25, 2009, 07:13:25 am »
Is there a way I can point to use WinDDK(I was not able to find a way)?
MinGW/GCC ships with the headers/libs needed to build such drivers, too (e.g. look into [PATH_TO_MINGW]\include\ddk).
If you really need to use the VC compiler, setup your project's build settings accordingly. In addition setup the VC compiler in C::B's compiler settings correctly.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ