Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!caen!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga.programmer Subject: Re: Help with SAS/C Compiler and macrodefs Message-ID: <29025.27db9ec9@kuhub.cc.ukans.edu> Date: 11 Mar 91 21:14:17 GMT References: Distribution: comp Organization: University of Kansas Academic Computing Services Lines: 43 In article , laza@cip-s01.informatik.rwth-aachen.de (Alexander Lazarevic) writes: > I want to use the -d option of the compiler, to define a macro, in conjunction with the "-charakter. > > eg. lc -d"lattice" -d3 -E test.c > > This gives me: > > Parameters beyond file name ignored. > Can't open source file. Yes, the compiler sees the quotes as a file name. Try: lc -dlattice -d3 -E test.c Also, the ='s from of -d cannot take a string for the define, so: lc -dlattice="Lattice" ... cant be done. Only numeric/symbolic values can be used, although you can get around that with something like: #define LATTICE "LATTICE" .. lc -dlattice=LATTICE Also, (memory fails me), I think the -dEFINE needs to be a BIG d like: -Dlattice > Can anybody help me with this? > > /\ > /--\lex. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Gooderum Only... \ Good Cheer !!! Academic Computing Services /// \___________________________ University of Kansas /// /| __ _ Bix: mgooderum \\\ /// /__| |\/| | | _ /_\ makes it Bitnet: MARKV@UKANVAX \/\/ / | | | | |__| / \ possible... Internet: markv@kuhub.cc.ukans.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~