T.R | Title | User | Personal Name | Date | Lines |
---|
2754.1 | Need four bytes of storage for each | TLE::RMEYERS | Randy Meyers | Fri Jul 21 1989 19:57 | 16 |
| Re: .0
Try defining GfxBase and IntuitionBase. Lattice includes these in its
library, but doesn't initialize them.
Put the following two lines in a .C file, compile it, and link it
in with the rest of the program:
long GfxBase;
long IntuitionBase;
Admittedly, the above two lines are sloppy programming because I
am lying about the real types of the two globals (they are pointers
to structs). However, the linker doesn't know that, and they should
allow the program to work (if the the undefined globals are the only
problem).
|
2754.2 | Hmm, and your on ANSI C?? | WJG::GUINEAU | | Sat Jul 22 1989 08:00 | 10 |
| > Admittedly, the above two lines are sloppy programming because I
> am lying about the real types of the two globals (they are pointers
> to structs). However, the linker doesn't know that, and they should
> allow the program to work (if the the undefined globals are the only
> problem).
I don't know, Randy - Rex J. wouldn't like that! :-)
|
2754.3 | :-) | ELUDOM::RMEYERS | Randy Meyers | Sat Jul 22 1989 20:01 | 7 |
| Re: .2
>I don't know, Randy - Rex J. wouldn't like that! :-)
Hey, *I* don't write programs like that. I just encourage others
to so I can complain about the poor style of the average C
programmer.
|
2754.4 | Almost working | MANTIS::LONG | | Sat Jul 22 1989 23:47 | 13 |
| Well, I finally got everything resolved ( the structure definition and
OpenLibrary were inconsistant), macro definitions that were case sensitive,
and fought for a day with a linking problem associated with a 64K limit
on the data segment in small data model.
And it almost works! Just a few of the 10 examples actually display without
crashing the machine and can't be run again as they don't correctly release
resources on exit. I would like to hear from anybody that tries this with
Lattice C 5.* to see if they have any better success. The documentation
makes it look like a much better package than it actually is. I may just have
to rewrite it from scratch using the documentation ;^{
Dick
|