home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apollo
- Path: sparky!uunet!clsi!mitch
- From: mitch@clsi (Mitchell N. Perilstein)
- Subject: Does /bin/cc take only 16 -D options?
- Message-ID: <MITCH.92Jul30163615@mira.clsi>
- Sender: usenet@clsi.COM
- Organization: CAD Language Systems, Inc.
- Distribution: comp
- Date: 30 Jul 92 16:36:15
- Lines: 25
-
- Compiling "int main() { ; }" on a DN3500 with /bin/cc (v.6.7.m, I think)
- running 10.3.2 in BSD mode, we get this:
-
- /bin/cc -Da -Db -Dc -De -Df -Dg -Dh -Di -Dj -Dk -Dl -Dm -Dn -Do -Dp
- -Dq -Dr -Ds -Dt a.c
- a.c: 0: too many -D options, ignoring -Dr
- a.c: 0: too many -D options, ignoring -Ds
- a.c: 0: too many -D options, ignoring -Dt
-
- This smells really bad. Can it only take 16 defines? Is there a
- graceful solution? All I can think of is putting this in my makefiles:
-
- cat << EOF > temp.c
- echo #define a
- echo #define b
- echo #define c
- EOF
- cat a.c >> temp.c
- /bin/cc temp.c
-
- Thanks,
- ---
- Mitchell N. Perilstein 5457 Twin Knolls Rd
- CAD Language Systems, Inc. Suite 101
- 410-992-5700 Columbia, MD 21045-3259
-