Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga.programmer Subject: Re: printf arrays in SAS/C Message-ID: <1991May13.154925.30678@kuhub.cc.ukans.edu> Date: 13 May 91 15:49:25 CDT References: <1991May13.182159.19294@nntp-server.caltech.edu> Organization: University of Kansas Academic Computing Services Lines: 34 > > Compiled under UNIX, this program works exactly as I would expect it to. > When I try to compile it on my Amiga with SAS/C 5.10, I get four very weird > linker errors. The linker tells me that I am trying to references undefined > symbols. These symbols are something like "_CVX45". Am I forgetting > to include some header file or some such? What is going on here? This has > me quite befuddled. You are forgetting to tell LC (or Blink) to use a Math library. Try: lc -Lm foo.c which says use the standard Lattice IEEE FP library (lcm.lib), as well as lc.lib, or: Blink c.o foo.o lib lib:lcm.lib lib:lc.lib to foo Of course other math libs can be used depending on your needs. Just remember to match the FP format (-f option, IEEE, FFP, etc) to the library or you'll get strange results. > Thanks, > > -Rob Knop > rknop@tybalt.caltech.edu -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~