DJGPP & Windows command line
DJGPP & Windows command line
Hi,
When compiling my kernel in C, I ran on one nasty problem: If the whole command line (path to GCC, GCC.EXE + all parameters) are larger than 128 characters, system refuses to execute the C compiler. Adding the parameters to a environment variable (SET gccoptions=blahblah) didn't help.
Any hints?
When compiling my kernel in C, I ran on one nasty problem: If the whole command line (path to GCC, GCC.EXE + all parameters) are larger than 128 characters, system refuses to execute the C compiler. Adding the parameters to a environment variable (SET gccoptions=blahblah) didn't help.
Any hints?
Last edited by inflater on Sat Jan 05, 2008 7:44 am, edited 1 time in total.
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English
)
Derrick operating system: http://derrick.xf.cz (Slovak and English
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English
)
Derrick operating system: http://derrick.xf.cz (Slovak and English
Have you tried MinGW?
Reflect Desktop Operating System - ' You only remember the name of the OS when it crashes '
- Combuster
- Member

- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
DJGPP and DOS are dated. There is no need to keep kicking a dead horse.
I agree with ucosty. Cygwin + a GCC Cross-Compiler is the way to go.
I agree with ucosty. Cygwin + a GCC Cross-Compiler is the way to go.
Not really. Because DJGPP is a DOS app, it is subject to all of those limitations. Reason enough to not use it, really.inflater wrote:Anything like "compile parameters script" doesn't exist?
MinGW is limited to making PE files, if I remember correctly.
edit: beaten to it
The cake is a lie | rackbits.com
I "fixed" it by moving the whole kernel to c:\krn, but that isn't a fix. Can that cross compiler's linker target to binary? If yes... i would be very grateful for it.
But I'll try to find it myself first.
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English
)
Derrick operating system: http://derrick.xf.cz (Slovak and English
Reflect Desktop Operating System - ' You only remember the name of the OS when it crashes '
For all of you who want a i586-elf cross compiler/binutils set:
Heres a link to the copy on my googlecode page: http://onyxkernel.googlecode.com/files/toolset.tar.bz2
--Michael
Heres a link to the copy on my googlecode page: http://onyxkernel.googlecode.com/files/toolset.tar.bz2
--Michael
I much prefer talking anyone having a problem with the GCC Cross-Compiler tutorial through, instead of providing ready- built binaries. The source for such binaries might go away, leaving the person in question with no way to update his toolchain. Moreover, it gives the impression that there might be anything difficult involved, making newcomers avoid the tutorial when there's no need...
Every good solution is obvious once you've found it.




