VOGONS


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Under dosbox, the line with the tlink command rejected and saying the command line is too long.
How can I compile my little demo?
Thanks
Jack

ass2 : ass2.obj dragon.obj
tlink -v -LD:\Borlandc\lib ass2.obj s2.obj s3.obj s4.obj s5.obj s6.obj s7.obj s8.obj s8a.obj s9.obj s10.obj s12.obj dragon.obj graphics.lib

ass2.obj : ass2.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib ass2.cpp

s2.obj : s2.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s2.cpp

s3.obj : s3.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s3.cpp

s4.obj : s4.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s4.cpp

s5.obj : s5.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s5.cpp

s6.obj : s6.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s6.cpp

s7.obj : s7.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s7.cpp

s8.obj : s8.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s8.cpp

s8a.obj : s8a.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s8a.cpp

s9.obj : s9.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s9.cpp

s10.obj : s10.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s10.cpp


s12.obj : s12.cpp
bcc -c -ID:\borlandc\include -LD:\Borlandc\lib s12.cpp

dragon.obj : dragon.cpp
bcc -c dragon.cpp

Reply 2 of 6, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie
Dominus wrote:

DOSBox is for games...

Just want to write games in dosbox, is it not wise to do so?
Thanks
Jack

Reply 3 of 6, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

no, it's not wise.
First of all, why DOS games? Second, find a way to do it in your operating system and then test the games in DOSBox. As DOSBox is intended for games and not applications your compiler may run into problems it never had in real DOS.
DOSBox IS NOT SUITED TO RUN YOUR NON-GAMING DOS APPLICATION applies

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 4 of 6, by Joey_sw

User metadata
Rank Oldbie
Rank
Oldbie

more advanced linker usually support a file-list,
a simple text file that contain .obj filenames that need to be linked

dos it self, can only have up to 127 characters (including the CR character at end) in command line.

-fffuuu

Reply 5 of 6, by Harekiet

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Yeh openwatcom seems to do the trick here, can easily build 16/32 bit versions as well if you so wanted

Reply 6 of 6, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Hi,
I am able to shorten the string of linking, but
I can't have a full symbolic information even specfying tlink -v
Sorry a bit off-topic here
I get
mov [@DGROUP], ax
but not
call helloworld
but
call 0000:0000
Thanks