News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Selecting Compiler for Kernel Mode Driver

Started by h3llh0l3, May 22, 2009, 09:22:42 PM

Previous topic - Next topic

h3llh0l3

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.

stahta01

#1
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

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: h3llh0l3 on May 22, 2009, 09:22:42 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]