🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Jason Molenda Sat, 13 Apr 1991 04:01
problems compiling nn 6.4.15 (save.c)
#1513
Author: Jason Molenda
Date: Sat, 13 Apr 1991 04:01
27 lines
1609 bytes
Anyone else having problems with this bit of code?  save.c, line 36:


export char printer[FILENAME] = DEFAULT_PRINTER;

(and then it goes on to have similar definitions for patch_command and
unshar_command).

I haven't done a lot of C programming for a few months, so I can't
remember who says this is illegal, but it doesn't look too kosher
to me.  I learned it that in ANSI C you could think of an array as
a static pointer, and this line trys to make an assignment to that
static pointer...

The best solution that comes to mind would be to stick a strcpy() 
somewhere in some init code, but I'm not familiar enough with the
code to know exactly where to put it....

any suggestions would be appreciated.

 -jason

ps-  compilng with /bin/cc on a SGI 4D/310GTXB running Irix 3.3.2.
-- 
Jason Molenda, Tech Support, Iris & News Admin, Minnesota Supercomputer Inst
molenda@msi.umn.edu || "You can tune a piano but you can't tuna fish."
Re: problems compiling nn 6.4.15 (save.c)
#1515
Author: Jason Molenda
Date: Sat, 13 Apr 1991 17:41
11 lines
1088 bytes
molenda@s1.msi.umn.edu (Jason Molenda) writes:


>export char printer[FILENAME] = DEFAULT_PRINTER;

Note that this was apparently present in patchlevel 12 also (the
version I patched up from).  I suspect my compiler changed or
something; it worked before! :-)
-- 
Jason Molenda, Tech Support, Iris & News Admin, Minnesota Supercomputer Inst
molenda@msi.umn.edu || "You can tune a piano but you can't tuna fish."
I am a moron (was: Re: problems compiling nn 6.4.15 (save.c))
#1518
Author: Jason Molenda
Date: Sun, 14 Apr 1991 05:18
12 lines
1212 bytes
molenda@s1.msi.umn.edu (Jason Molenda) writes:

>molenda@s1.msi.umn.edu (Jason Molenda) writes:

>>export char printer[FILENAME] = DEFAULT_PRINTER;

DEFAULT_PRINTER wasn't defined.  I must have been half asleep when
I rewrote my config.h from scratch; I commented out the SysV version
but didn't uncomment the BSD version.
-- 
Jason Molenda, Tech Support, Iris & News Admin, Minnesota Supercomputer Inst
molenda@msi.umn.edu || "You can tune a piano but you can't tuna fish."
Re: problems compiling nn 6.4.15 (save.c)
#1527
Author: Dave Olson
Date: Mon, 15 Apr 1991 07:06
21 lines
1406 bytes
In <1991Apr13.174114.2807@s1.msi.umn.edu> molenda@s1.msi.umn.edu (Jason Molenda) writes:

| molenda@s1.msi.umn.edu (Jason Molenda) writes:
| 
| 
| >export char printer[FILENAME] = DEFAULT_PRINTER;
| 
| Note that this was apparently present in patchlevel 12 also (the
| version I patched up from).  I suspect my compiler changed or
| something; it worked before! :-)

It just turns into this for me (and has for some time)

 char printer[  1024    ] =     "lp -s"         ;

Just what kind of errors are you seeing?
--

	Dave Olson

Life would be so much easier if we could just look at the source code.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads