Page 1 of 1
Good Windows Linker
Posted: Wed Aug 29, 2012 4:57 am
by fbudek
Does anyone know where I can get a good linker
- for windows - that is compatible with a.out object files?
Help appreciated
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 5:32 am
by melgmry0101b
Hi fbudek,
You can use DJGPP :
http://www.delorie.com/djgpp/
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 6:11 am
by fbudek
Thanks, Mezo
Now it can recognise them as a.out but it comes out in a different error this time:
main.o:main.c:(.text+0x94): undefined reference to '___main'
Once again, help appreciated!
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 6:17 am
by thepowersgang
I counter the previous suggestion, and point you to
MinGW
DJGPP is a vastly out of date port of the GNU toolchain to DOS/Win16. MinGW is nicely updated.
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 6:21 am
by fbudek
Thanks, powersgang.
I already started by trying it with MinGW but it didnt seem to support a.out
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 6:43 am
by AJ
Hi,
I guess one way would be to look at cross-compiling binutils on cygwin/mingw? Could you give a higher-level overview of what you are trying to achieve and why you need to be tied to a.out? It may be that with a it more detail there's an alternative solution to the problem.
Cheers,
Adam
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 8:22 am
by fbudek
I am going to try compiling everything under Linux (through VirtualPC) and see if that works.
If not, then I will start to look into a.out alternatives.
Thanks for the great response overall so far, though
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 8:32 am
by qw
To find the question behind the question: why are you using such an outdated format?
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 9:17 am
by fbudek
I am making this as an extremely minimal OS which I am building up from part of a tutorial,
which used a.out (nasm -f aout -o start.o start.asm)
So I'm not entirely sure whether everything will work together if I change the object format for start.o
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 10:06 am
by bluemoon
I recommend try out the tutorial from this site, which adopt decent tool-chain.
Re: Good Windows Linker
Posted: Wed Aug 29, 2012 10:22 am
by Combuster
The canon solution for this error in general is the
GCC Cross-Compiler. In your case
Searching should have been sufficient.