Loading ...
Sorry, an error occurred while loading the content.

Compile errors under Linux

Expand Messages
  • capricornvs@ymail.com
    I recently grabbed a Unix copy of the source for the Swiss Ephemeris, so that I could experiment with the developers API, but I cannot get it to compile. Has
    Message 1 of 1 , Aug 1, 2009
    View Source
    • 0 Attachment
      I recently grabbed a Unix copy of the source for the Swiss Ephemeris, so that I could experiment with the developers API, but I cannot get it to compile. Has anybody else encountered this problem? Could anybody give me any hints as to what I can or should do to solve this problem and get swetest to build?

      Thanks in advanced to anybody that can help.



      This is the version of the API I downloaded:
      ftp://ftp.astro.com/pub/swisseph/swe_unix_src_1.76.00.tar.gz


      This is the system I'm building on:
      spica% uname -a
      Linux spica 2.6.30-ARCH #1 SMP PREEMPT Mon Jul 20 11:20:32 UTC 2009 i686 Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz GenuineIntel GNU/Linux


      This is the version of GCC I'm building with:
      spica% gcc -v
      Using built-in specs.
      Target: i686-pc-linux-gnu
      Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
      Thread model: posix
      gcc version 4.4.1 (GCC)


      This is the error I'm getting at build time:
      spica% make
      cc -g -O9 -Wall -pedantic -o swetest swetest.o -L. -lswe -lm
      swetest.o: In function `call_heliacal_event':
      /home/pan/swetest/src/swetest.c:2367: undefined reference to `swe_heliacal_ut'
      /home/pan/swetest/src/swetest.c:2422: undefined reference to `swe_heliacal_ut'
      /home/pan/swetest/src/swetest.c:2413: undefined reference to `swe_heliacal_ut'
      /home/pan/swetest/src/swetest.c:2401: undefined reference to `swe_heliacal_ut'
      /home/pan/swetest/src/swetest.c:2378: undefined reference to `swe_heliacal_ut'
      swetest.o:/home/pan/swetest/src/swetest.c:2391: more undefined references to `swe_heliacal_ut' follow
      swetest.o: In function `main':
      /home/pan/swetest/src/swetest.c:1026: undefined reference to `swe_version'
      collect2: ld returned 1 exit status
      make: *** [swetest] Error 1
    Your message has been successfully submitted and would be delivered to recipients shortly.