Hello folks
I compiled gnu-pascal on my NetBSD 2.0.2 box yesterday. It worked well. After some basic compiler tests, I would like to know, how to compile a ncurses program. I have the ncurses lib already installed. It looks like this:
/usr/pkg/lib/libncurses.so /usr/pkg/include/ncurses.h
O.k, now I have some questions:
1. Where can I find the gpc BINDINGS to ncurses? I only found the library on the gpc-webspace.
2. What are the compiler flags to compile gpc-ncurses code?
3. A small test code would be very useful. Any suggestions?
Thx a lot Regards Karim F.
Karim Forsthofer wrote:
I compiled gnu-pascal on my NetBSD 2.0.2 box yesterday. It worked well. After some basic compiler tests, I would like to know, how to compile a ncurses program. I have the ncurses lib already installed. It looks like this:
/usr/pkg/lib/libncurses.so /usr/pkg/include/ncurses.h
O.k, now I have some questions:
- Where can I find the gpc BINDINGS to ncurses? I only found the
library on the gpc-webspace.
What are the compiler flags to compile gpc-ncurses code?
A small test code would be very useful. Any suggestions?
There is a ncurses for gpc package at my website http://www.microbizz.nl/gpc.html. It has been put together by Willett Kempton and it contains demo programs. Note that the package is for Mac OS X. It will probably work on NetBSD, but you have to check by hand if the all the types have the correct sizes (there is no configure option yet).
Regards,
Adriaan van Os
On 7 Sep 2005, at 7:24 AM, Adriaan van Os wrote:
Karim Forsthofer wrote:
I compiled gnu-pascal on my NetBSD 2.0.2 box yesterday. It worked well. After some basic compiler tests, I would like to know, how to compile a ncurses program. I have the ncurses lib already installed. It looks like this:
/usr/pkg/lib/libncurses.so /usr/pkg/include/ncurses.h
O.k, now I have some questions:
- Where can I find the gpc BINDINGS to ncurses? I only found the
library on the gpc-webspace.
What are the compiler flags to compile gpc-ncurses code?
A small test code would be very useful. Any suggestions?
There is a ncurses for gpc package at my website <http:// www.microbizz.nl/gpc.html>. It has been put together by Willett Kempton and it contains demo programs. Note that the package is for Mac OS X. It will probably work on NetBSD, but you have to check by hand if the all the types have the correct sizes (there is no configure option yet).
Regards,
Adriaan van Os
Karim,
Adriaan's description is correct. I wrote/modified the ncurses package to be generic. However, a few types are set by the ncurses configuration process and the pascal source in the ncurses.pas binding should be checked against your /usr/pkg/include/ncurses.h. There's really only a copule of types to check as documented in the accompanying txt files, it should be very fast.
I would be interested to know whether you needed to change any types and if so, which.
Willett Kempton