home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / apollo / 3160 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.sys.apollo
  2. Path: sparky!uunet!clsi!mitch
  3. From: mitch@clsi (Mitchell N. Perilstein)
  4. Subject: Does /bin/cc take only 16 -D options?
  5. Message-ID: <MITCH.92Jul30163615@mira.clsi>
  6. Sender: usenet@clsi.COM
  7. Organization: CAD Language Systems, Inc.
  8. Distribution: comp
  9. Date: 30 Jul 92 16:36:15
  10. Lines: 25
  11.  
  12. Compiling "int main() { ; }" on a DN3500 with /bin/cc (v.6.7.m, I think)
  13. running 10.3.2 in BSD mode, we get this:
  14.  
  15.     /bin/cc -Da -Db -Dc -De -Df -Dg -Dh -Di -Dj -Dk -Dl -Dm -Dn -Do -Dp 
  16.     -Dq -Dr -Ds -Dt a.c
  17.     a.c: 0: too many -D options, ignoring -Dr
  18.     a.c: 0: too many -D options, ignoring -Ds
  19.     a.c: 0: too many -D options, ignoring -Dt
  20.  
  21. This smells really bad. Can it only take 16 defines? Is there a
  22. graceful solution? All I can think of is putting this in my makefiles:
  23.     
  24.     cat << EOF > temp.c
  25.     echo #define a
  26.     echo #define b 
  27.     echo #define c 
  28.     EOF
  29.     cat a.c >> temp.c
  30.     /bin/cc temp.c
  31.  
  32. Thanks,
  33. ---
  34. Mitchell N. Perilstein                               5457 Twin Knolls Rd
  35. CAD Language Systems, Inc.                           Suite 101
  36. 410-992-5700                                         Columbia, MD 21045-3259
  37.