home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.apple2      Discussion about Apple II micros      56,720 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 55,903 of 56,720   
   Tom Thumb to All   
   gno & orca   
   01 Nov 22 13:37:41   
   
   From: justliketomsthumbsblues@gmail.com   
      
   So I bought Gno/ME 2.0 in 1994, came with a hand written receipt for $89 and   
   apparently I updated it to 2.0.4 though I don’t remember doing it; 28 years   
   and I have trouble with yesterday; so now I see v2.0.6 and downloaded that and   
   installed it as per    
   instructions to /gno and /gno-hfs.   
      
   I’m familiar with and use linux and mac os x terminal and prefer gno  to   
   orca shell but I have a problem using C. In gno 2.0.4 I’ll use vi to create   
   foo.c but cant cmpl it because the subtype is set as txt. I don’t know how   
   to set the language or    
   set a file’s subtype with gno shell. I can run orca and “change foo.c   
   cc” but that pretty much defeats the purpose of using gno. I feel I must   
   have something setup wrong; 2.0/2.0.4 installer sets things up after answering   
   yes to orca installed.   
      
   As for 2.0.6, so, it installs orcacdefs and orcalib in /lib but also   
   /lang/orca with empty languages, shell, utilities, libraries directories. I   
   populated the shell, languages and utilities directories from 2.0.4 /ORCA.gno   
   and left the libraries    
   directory empty. I created an “alias cc /usr/bin/occ” and can create foo.c   
   and compile it issuing “cc -o foo foo.c” and if it’s a simple hello   
   world or uses %d in a printf works okay, compiles and runs. If I then use %f   
   it will crash every time.   
    I mean the replacements are appropriate for the given variables. The source   
   in question is anexample from K&R that prints a Fahrenheit - Celsius table. It   
   works everywhere but compiled under gno 2.0.6 so I moved and saved 2.0.6 /lib   
   and replaced it with    
   2.0.4 /library and now occ produces an exe that works, first tried replacing   
   orcacdefs but that didn’t work.   
      
   So now 2.0.6 “cc -o foo foo.c” works also “cmpl foo.c keep=foo” but I   
   can’t accept that. 2.0.4’s orcalib is 59K and 2.0.6’s is 29k; 2.0.4   
   ORCAInclude is 156k, 2.0.6 154k and 2.0.4’s ORCADefs is 496k and 2.0.6’s   
   orcadefs is 451k so there    
   is a lot going on there.   
      
   Anyone have any insight as how to properly setup gno 2.0.4 and 2.0.6, for use   
   with orca/c? Preferably the latter but both would be nice or just any comments   
   or thoughts.   
      
   This works in 2.0.6 “out of box”   
   #include    
      
   void main(void)   
   {   
   	int x;   
   	x = 5;   
   	printf(“x = %d \n”, x);   
      
   This does not but does after switching out 2.0.6 /lib for 2.0.4 /libraries   
   (renamed to lib)   
   void main(void)   
   {   
   	float x;   
   	x = 5.56;   
   	printf(“x = %f \n”, x);   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca