Diese Nachricht antwortet auf einen Text, den j.j.vanderheijden@student.utwente.nl am Freitag, den 11.10.96, durch die Datennetze geschossen hat:
Hallo J.J.
JJvdH> >I must include djgpp.lnk manually, though. JJvdH> When I said 'specs' I meant 'djgpp.env' JJvdH> The 'specs' and 'specs.gpc' file should not be touched! I copied the [gcc] section of *djgpp.env* to [gpc]. And the linker ld cannot find something with ..._ctor_... and _dtor_. until i include djgpp.lnk manually into linking.
JJvdH> This was a remark by Peter, but he was probably confusing unix and dos. JJvdH> Not sure you can redirect stderr in DOS. Yes, i read something it's impossible in DOS. :-(
JJvdH> I only heard rumours, but if you watch the djgpp newsgroup JJvdH> (comp.os.msdos.djgpp) or it's archive at http://www.delorie.com you may JJvdH> find it. Maybe it's in the contrib section of the djgpp archive at JJvdH> ftp.delorie.com I'll try it.
JJvdH> ==================================== program dpmitest; JJvdH> JJvdH> It's a little C-ish style (ulong's etc) but if you look at <dpmi.h> JJvdH> from djgpp's C-lib you will see how I did it. I noticed that the GNU-integer is *not* the same as the BP-integer. :-)
JJvdH> BTW optimization kill's this sample, maybe because GPC aligns the JJvdH> byte size variables in the records to 32bit boundaries for speed then JJvdH> (??!) It seems that the «ret»-instruction at the end of the program causes the exception. if you use a halt() as the last command in the source-file, it will work correctly. A bug in the compiler ?
JJvdH> The 'asmname' could have been just a 'C' directive, but then you would JJvdH> have had functions called __dpmi_.... in your pascal program. Why not? If it is possible to disable those ugly underscore-warnings... ?!
JJvdH> crazy memory issues in DOS. I'm not sure you need all this DPMI stuff JJvdH> in the first place. Unless you want to write protected mode interrupt JJvdH> handlers, in which case you'd better take a good look in the djgpp JJvdH> docs..... No, i'll try to write my own system-unit and I'll try to access the LFB of an VESA card.
JJvdH> JanJaap Bye Andreas