Package: libmathlib2-dev Severity: normal -------- Original Message -------- Subject: debian cfortran package Date: Fri, 24 Jun 2005 11:59:52 +0900 (JST) From: Tim Gershon <gershon(at)bmail.kek.jp> To: Kevin B. McCarty <[EMAIL PROTECTED]>
Hi, I am trying to use your package, and have hit a problem with linkage. At the moment, I am just using the PROB function from mathlib, but am planning to use various MINUIT related functions. In the code, I have // #include "mycernlib.hh" #include "cfortran/cfortran.h" #include "cfortran/gen.h" When I compile (using g++-3.3, or g++-3.4), I get the errors given below. If I use my own wrapper (in mycernlib.hh), I can compile with no problem. I also get the same result if I compile following the instructions at http://wwwasd.web.cern.ch/wwwasd/cgi-bin/listcernlibfaqs.pl/3 (I couldn't find any instructions regarding compilation/linkage in the cfortran package documentation, though maybe I didn't look hard enough). If I use g++-4.0, the compile seems to be clean, but I get swamped with warnings from the assembler. If you have suggestions, I would be very happy to hear them, as I would prefer to use your package than to write a bunch of wrappers. Anyway, thanks for your efforts making the cernlib packages! Cheers Tim Gershon [EMAIL PROTECTED] ~/analysis/phi3average 4% g++ -o Phi3Averager -L/usr/lib -lmathlib -lg2c -lm Phi3Averager.cc /tmp/ccm0IlgA.o(.text+0x343): In function `__cf__QLGAMA': : undefined reference to `qlgama_' /tmp/ccm0IlgA.o(.text+0x658): In function `__cf__CHEBQU': : undefined reference to `chebqu_' /tmp/ccm0IlgA.o(.text+0xac0): In function `__cf__E401BD': : undefined reference to `e401bd_' /tmp/ccm0IlgA.o(.text+0xae0): In function `__cf__ELIN1': : undefined reference to `elin1_' /tmp/ccm0IlgA.o(.text+0xc8b): In function `__cf__FRED2': : undefined reference to `fred2_' /tmp/ccm0IlgA.o(.text+0xcab): In function `__cf__FRED3': : undefined reference to `fred3_' /tmp/ccm0IlgA.o(.text+0xd52): In function `__cf__FUN': : undefined reference to `fun_' /tmp/ccm0IlgA.o(.text+0xe03): In function `__cf__QGAMMA': : undefined reference to `qgamma_' /tmp/ccm0IlgA.o(.text+0xf5e): In function `__cf__QGAUSS': : undefined reference to `qgauss_' /tmp/ccm0IlgA.o(.text+0xff8): In function `__cf(int0_t *, *)': : undefined reference to `gpindp_' /tmp/ccm0IlgA.o(.text+0x10c0): In function `__cf__QLINSQ': : undefined reference to `qlinsq_' /tmp/ccm0IlgA.o(.text+0x1122): In function `__cf__LOCHAR': : undefined reference to `lochar_' /tmp/ccm0IlgA.o(.text+0x11e7): In function `__cf__NEAR1': : undefined reference to `near1_' collect2: ld returned 1 exit status Tim Gershon http://belle.kek.jp/~gershon/contact.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]