Mail Archives: djgpp/1994/05/03/10:16:36
Hi,
Thanks to the people who answered my questions about how to compile the examples
in the GRX package.
After setting correctly the library path, and using the Make program that comes
with Borland Pascal 7.0, I could compile all the examples.
The speed of compilation I could increase by setting the "noems" option of
emm386. With ems enabled the compiler was using only 256k of expanded memory
instead of 2M of expanded memory. It is still slow, but I can take a coffe
break sometimes...
I am trying to port a somewhat complex program that I wrote for Borland C, and
am still having some problems:
- Where is the "coreleft" function? Is there something equivalent? Or better,
some function equivalent to the Turbo Pascal "MaxAvail" function, that returns
the size of the largest block that can be allocated with "malloc"?
- Where is the function "gcvt"? I can find the prototype in "std.h", but nothing
in the libraries. The linker cannot resolve it.
- The header file of the "bcc2grx" package declares the values "BLACK" and
"WHITE" as functions. This causes a conflict the "gccconio.h" (?), that
declares the same values as constants. I had to change the first header to
compile a program using graphical functions and functions as "getch" and
"kbhit".
- Is there some trick in usign the "bcc2grx" function "outtextxy"? Apparently
my program is crashing in a call to it. The screen changes color and nothing
happens until ctrl-break is pressed. (Just a question. I didn't work enough
on this problem yet, and didn't try the debugger).
Antonio Carlos M. de Queiroz
- Raw text -