Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!jarthur!nntp-server.caltech.edu!rknop From: rknop@nntp-server.caltech.edu (Robert Andrew Knop) Newsgroups: comp.sys.amiga.programmer Subject: printf arrays in SAS/C Message-ID: <1991May13.182159.19294@nntp-server.caltech.edu> Date: 13 May 91 18:21:59 GMT Organization: California Institute of Technology, Pasadena Lines: 29 Hi- Thank you to everyone who responded to my problem with linking to the amiga library and reading files. I seem to have that one fixed, although I am having trouble checking that. Now, I seem to have a different problem, and that is referencing arrays in printf. Consider the following test program: #include main() { int i; float junk[5]; for (i=0;i<5;i++) junk[i]=(float)i+0.5; for (i=0;i<5;i++) printf("junk[i]=%f\n",junk[i]); } 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. Thanks, -Rob Knop rknop@tybalt.caltech.edu