Reputation: 965
I am maintaining hardware monitor program, which will be executed in 16-bit MS-DOS. I use dosbox with TurboC(tcc.exe) as build environment
While the dos command line can't accept command exceed 128 characters (Ref) , but I have a long argument list like this:
tcc.exe -ID:\tc\include -LD:\tc\lib -o MyProgram.exe MyProgram.cpp A.obj B.obj C.obj .........
So I can't build the code successfully. Anyone has idea to overcome this situation? Thanks.
Upvotes: 1
Views: 364
Reputation: 57739
Check your compiler documentation. Many compilers allow parameters to be placed into a text file and the name of the text file given as a command line parameter.
For example, if "compiler_options.txt" hold commands than the following may be how to pass the file:
tcc.exe @compiler_options.txt
Read the documentation to find out if the capability is supported and the correct command line syntax.
Upvotes: 4
Reputation: 3363
Have you tried setting the value to it's maximum in the CONFIG.SYS file:
shell=c:\windows\command.com /u:250 /p
Upvotes: 0