Article View: news.software.nn
Article #1513problems compiling nn 6.4.15 (save.c)
From: Jason Molenda
Date: Sat, 13 Apr 1991 04:01
Date: Sat, 13 Apr 1991 04:01
27 lines
1609 bytes
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."
Technical Details
Message-ID:
<1991Apr13.040123.5433@s1.msi.umn.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!math.fu-berlin.de!fub!ox.com!caen!zaphod.mps.ohio-state.edu!samsung!news.cs.indiana.edu!msi.umn.edu!molendaShow Full Headers
Complete Article Headers
Message-ID: <1991Apr13.040123.5433@s1.msi.umn.edu> Subject: problems compiling nn 6.4.15 (save.c) Date: Sat, 13 Apr 1991 04:01:23 +0000 From: molenda@s1.msi.umn.edu (Jason Molenda) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!math.fu-berlin.de!fub!ox.com!caen!zaphod.mps.ohio-state.edu!samsung!news.cs.indiana.edu!msi.umn.edu!molenda Newsgroups: news.software.nn Organization: The Very Large Group of People Who Wish to Have More Money Lines: 27