From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,41256255a34c728 X-Google-Attributes: gid111c93,public From: martin.kahlert@keksy.mchp.siemens.de (Martin Kahlert) Subject: Re: calling Fortran BLAS Routines Date: 1999/12/23 Message-ID: <83skbh$e75$2@news.mch.sbs.de>#1/1 X-Deja-AN: 564110024 References: <83r5et$a3o@news.Informatik.Uni-Oldenburg.DE> To: Johannes Nix Content-Type: text/plain; charset=us-ascii Organization: Siemens Inc. Mime-Version: 1.0 Reply-To: martin.kahlert@mchp.siemens.de Newsgroups: comp.os.linux.alpha [Posted and mailed] In article <83r5et$a3o@news.informatik.uni-oldenburg.de>, Johannes Nix writes: > > Hello, > I am trying to call the optimized (assembler-coded) BLAS routines > written by Kazushigi Goto from a C Program. He writes they are > entirely compatible to the Fortran originals, but I didn't manage to > call sdot_. All what I get out is zero. I tried also to compare with > f2c output but I don't know Fortran :-(. Did you put a prototype in front of your call? i.e. something like float sdot_(const int*,const float*,const int*,const float*,const int*); ? Without that, every C-compiler assumes that sdot_ will return an int, which is a bit wrong... Bye, Martin. -- The early bird gets the worm. If you want something else for breakfast, get up later.