User forums > Using Code::Blocks
Problems developing a 64bit driver
msim:
--- Quote from: Manolo on October 17, 2016, 02:18:26 am ---Hint: GNU GCC is for Linux. For Windows you must use a "GCC for Windows". Look for MinGW or MinGW-64 or TDM-GCC or some one else.
--- End quote ---
I'm using C::B's GCC compiler which is MinGW
BlueHazzard:
--- Quote from: msim on October 16, 2016, 07:37:27 pm ---I tried to use WDK's ntddk.h file, but it is not supported by GNU GCC.
--- End quote ---
you can try the mingw64 fork. It is more up to date with the windows sdk then the normal mingw or tdm mingw that ships with c::b
*) If you want to use the mingw64 fork you have to uninstall all mingw related compiler from your system. If you are using the c::b version what is shiped with a preinstalled compiler you have to uninstall it, and install a version without compiler. Then install the mingw64 compiler and set up codeblocks so it can find the executables ( Settings->Compiler->Toolchain executables )
NOTE: i am not quite sure if mingw64 supports the windows driver sdk, you have to google it
NOTE2: i think for driver development you need the windows sdk, and for this you have to use the windows compiler
*) You can have multiple compiler installed, but especially with mingw this is a thing for advanced user, and i don't have the time to write a step by step guide of how to do it.
greetings
msim:
--- Quote from: BlueHazzard on October 17, 2016, 07:30:39 pm ---
--- Quote from: msim on October 16, 2016, 07:37:27 pm ---I tried to use WDK's ntddk.h file, but it is not supported by GNU GCC.
--- End quote ---
you can try the mingw64 fork. It is more up to date with the windows sdk then the normal mingw or tdm mingw that ships with c::b
*) If you want to use the mingw64 fork you have to uninstall all mingw related compiler from your system. If you are using the c::b version what is shiped with a preinstalled compiler you have to uninstall it, and install a version without compiler. Then install the mingw64 compiler and set up codeblocks so it can find the executables ( Settings->Compiler->Toolchain executables )
NOTE: i am not quite sure if mingw64 supports the windows driver sdk, you have to google it
NOTE2: i think for driver development you need the windows sdk, and for this you have to use the windows compiler
*) You can have multiple compiler installed, but especially with mingw this is a thing for advanced user, and i don't have the time to write a step by step guide of how to do it.
greetings
--- End quote ---
I tried to install mingw64, it seems I have to compile it using GNUWin's 'Make', but I fail in doing it. Could you help me?
BlueHazzard:
--- Quote from: msim on October 18, 2016, 09:59:18 am ---I tried to install mingw64, it seems I have to compile it using GNUWin's 'Make', but I fail in doing it. Could you help me?
--- End quote ---
i didn't had to do any compiling...
Download win_build and install it... (you have to klick on the "process" button on the right top)
http://win-builds.org/doku.php/download_and_installation_from_windows
Then you have to set up the compiler:
1) Start codeblocks
2) Settings->Compiler
3) Selected compiler: "GNU GCC Compiler" -> Copy -> Enter the name "Mingw64_win_build" -> OK -> OK
4) Selected compiler: "Mingw64_win_buils" -> Toolchain executables
5) Compilers installation directory -> ... -> Browse to the installation directory of win_build and there to the "bin" sub folder -> Ok
6) remove the "mingw32-" part from the Program Files -> Ok
7) Create a new project but select "Mingw64_win_buils" when asked for the Compiler
7b) if you want to migrate a existing project:
1) Project-> Build options->On the left select your project (top most entry)->Selected compiler->"Mingw64_win_buils"-> Yes -> Ok
2) !!!!! Make a full rebuild !!!!! -> Build->Rebuild
i hope this helps
greetings
msim:
--- Quote from: BlueHazzard on October 20, 2016, 12:04:32 am ---
--- Quote from: msim on October 18, 2016, 09:59:18 am ---I tried to install mingw64, it seems I have to compile it using GNUWin's 'Make', but I fail in doing it. Could you help me?
--- End quote ---
i didn't had to do any compiling...
Download win_build and install it... (you have to klick on the "process" button on the right top)
http://win-builds.org/doku.php/download_and_installation_from_windows
Then you have to set up the compiler:
1) Start codeblocks
2) Settings->Compiler
3) Selected compiler: "GNU GCC Compiler" -> Copy -> Enter the name "Mingw64_win_build" -> OK -> OK
4) Selected compiler: "Mingw64_win_buils" -> Toolchain executables
5) Compilers installation directory -> ... -> Browse to the installation directory of win_build and there to the "bin" sub folder -> Ok
6) remove the "mingw32-" part from the Program Files -> Ok
7) Create a new project but select "Mingw64_win_buils" when asked for the Compiler
7b) if you want to migrate a existing project:
1) Project-> Build options->On the left select your project (top most entry)->Selected compiler->"Mingw64_win_buils"-> Yes -> Ok
2) !!!!! Make a full rebuild !!!!! -> Build->Rebuild
i hope this helps
greetings
--- End quote ---
I managed to do it, but I still get error 1275 .. I'm using the following as ntddk.h source: https://sourceforge.net/u/earnie/winapi/winapi/ci/master/tree/
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version