make.exe and makefile

Programming, for all ages and all languages.
Post Reply
Thunder

make.exe and makefile

Post by Thunder »

Hello, I have a problem windows shell input line can be up to 125 characters, but I have to link more object files and their names together are more than 125 characters, how can I link all object files with make program?

Thanks bye :)
Tim

Re:make.exe and makefile

Post by Tim »

With difficulty. The best way is to upgrade to Windows 2000 or XP and use a 32-bit make.exe, thereby removing the command-line length restriction.

If you can't do that, then you should link groups of object files into libraries using the ar command, then pass each library name on the linker command line.
Thunder

Re:make.exe and makefile

Post by Thunder »

Where could I get 32 bit make.exe?
Thanks
Tim

Re:make.exe and makefile

Post by Tim »

Cygwin

I should have said "set of 32-bit tools", because it's no use trying to pass a long command line from a 32-bit program to a 16-bit one.

If you're using DJGPP, I'd advise you to replace all your tools with the Cygwin equivalents.
Thunder

Re:make.exe and makefile

Post by Thunder »

Thanks a LOT :D
sonneveld

Re:make.exe and makefile

Post by sonneveld »

? I used mingw with win95 and I didn't have any troubles compiling nagi in make.

- Nick
Tim

Re:make.exe and makefile

Post by Tim »

I could have said mingw instead of Cygwin. They're both 32-bit native Windows applications -- unlike DJGPP, which is a 32-bit app inside a 16-bit app inside a 32-bit OS.
Post Reply