Windows Enviroment for OSDev

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
GendoIkari
Posts: 7
Joined: Thu Jan 04, 2007 6:46 am

Windows Enviroment for OSDev

Post by GendoIkari »

What kind of enviroment should i set to develop os under win2k?

On Linux all is simple and smart. I use gcc and ld, nasm and all goes well.
But when i install cygwin or minsys under windows, the same options that i use under linus do not work.
Strange error like: "cannot perform pe actions on a not pe files" (?), or the linker do not know the options "-oformat binary", etc...

Obviosly i do something wrong, or i have to use differnt compiler and linker options. I've installed now Code::Blocks, like other forum user, but how can i get it work?

tnks
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

The Linux toolchain is aimed at creating ELF executables (running under Linux), the Windows toolchain at creating PE executables (running under Windows).

This problem has resurfaced frequently; a quick and easy way to get a ELF toolchain under Cygwin is to build a GCC Cross-Compiler. Try it, it's quite easy.
Every good solution is obvious once you've found it.
User avatar
GendoIkari
Posts: 7
Joined: Thu Jan 04, 2007 6:46 am

Post by GendoIkari »

but i do not want compile elf executables with windows, i want to compile plain binary executables for my kernel.
I do that with the link that you've given me?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Yes you can.
Every good solution is obvious once you've found it.
smbogan
Member
Member
Posts: 29
Joined: Tue Nov 21, 2006 3:17 pm

Post by smbogan »

Personally I use DJGPP, nasm, and ld on windows...I think Bran's kernel tutorial tells what the command line options are that work for OS dev.
Post Reply