Page 1 of 1
make.exe and makefile
Posted: Wed Jul 02, 2003 2:54 am
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
Re:make.exe and makefile
Posted: Wed Jul 02, 2003 6:57 am
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.
Re:make.exe and makefile
Posted: Wed Jul 02, 2003 8:31 am
by Thunder
Where could I get 32 bit make.exe?
Thanks
Re:make.exe and makefile
Posted: Wed Jul 02, 2003 12:51 pm
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.
Re:make.exe and makefile
Posted: Thu Jul 03, 2003 1:40 am
by Thunder
Thanks a LOT
Re:make.exe and makefile
Posted: Thu Jul 03, 2003 9:50 am
by sonneveld
? I used mingw with win95 and I didn't have any troubles compiling nagi in make.
- Nick
Re:make.exe and makefile
Posted: Thu Jul 03, 2003 12:51 pm
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.