[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2754.0. "PLPLOT with MANX C ????" by SPIDER::LONG () Fri Jul 21 1989 02:55

Hi,
	Has anybody had a chance to play with PLPLOT on FF222 ?  I've been
trying for two days to get it to fly with MANX C with no luck yet.  After
fixing a number of inconsistancies between compilers, and basically doing
a 3 pass link to reconcile everything, I'm still getting undefines on
GfxBase and IntuitionBase.  If anybody puts together a good Manx version of 
this, I would dearly like a copy.

	Thanks,
		Dick
T.RTitleUserPersonal
Name
DateLines
2754.1Need four bytes of storage for eachTLE::RMEYERSRandy MeyersFri Jul 21 1989 22:5716
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.2Hmm, and your on ANSI C??WJG::GUINEAUSat Jul 22 1989 11:0010
> 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::RMEYERSRandy MeyersSat Jul 22 1989 23:017
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.4Almost workingMANTIS::LONGSun Jul 23 1989 02:4713
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