Now that the problem is solved, can i please hijack this one? C, masm and windows had been my job before i retired, i have never had a chance to work with gcc. DOS, djgpp and rhide is my new hobby. How the hell do you make the linker stop pushing object duplicates when working with multiple c and header files? Is there a flag for that? I am using rhide and "build all" never works, i need to compile c files one by one, and link them manually, occasionally it also nags about forwarded structs. Rhide also somehow forgets about key bindings, and has some other issues, but i can live with that. What am i doing wrong? Its not that I not aware of guard defines or header files logic.
EDIT:
Solved, apparently header files should not be added to the "project", only c files (and keep h files in the same folder). I got used to IDEs that list header files along c files and name that a project, djgpp is different.