Show quoted text 7 lines
FP compiler: ver.1.0.4; target system: DOS (cwsDpmi)
The compiler runs well, but the linker generates no EXE-file !
What could be wrong?
1. Is it possible to link to 32bit librarys generated by Watcom?
2. Which file do I have to link to: *.lib or *.obj?
3. Any recomended switches for FPC?
4. Are Dos4GW and CwsDpmi compatible?
Linkers are evil.
There is a utility called "PMODE/W" a DOS4GW replacement... Its utility, PMWBIND, can strip the 180k DOS4GW header off of any file. I use it to reduce the redundant information on my drive... What is left is a .LE file, or Linear Executable. These LE files require a DOS extender that provides some other services too...
The basic function of a DOS extender such as DOS4GW is to create a virtual 32bit OS for DOS programs. AS there are no rules about DOS extenders, DOS can support any type of 32-bit environment immaginable. =)
Go look at the output of your linking process, if there is a .LE file there, attempt to run it with dos4gw...
Example:
---------------
DOS4GW DOOM2.LE
---------------
There is probably a linker command or something similar to add the stub...
OTOH, if the Pascal object is not fully recognised by the linker, it might assume that you are creating a DLL or something...
People who think that destructive brain uploading is an acceptable and
positive choice should be committed to the mental hospital for suicidal
tendancies.
http://users.rcn.com/alangrimes/ <my website.