gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-devel] [task #13786] Usable libraries for other languages (may


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [task #13786] Usable libraries for other languages (maybe using SWIG)
Date: Sun, 4 Sep 2016 10:32:36 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Update of task #13786 (project gnuastro):

        Percent Complete:                      0% => 10%                    

    _______________________________________________________

Follow-up Comment #2:

Following the Libtool guidelines
<https://www.gnu.org/software/libtool/manual/html_node/C-header-files.html>,
the library header files were corrected to also be usable in C++. The change
has been pushed <https://gitlab.com/makhlaghi/gnuastro/commit/cc89d3c33cc> to
my personal (development) repository. As you see in the Libtool page, this is
much more comprehensive than the suggested addition in the first comment of
this task.

A small test C++ program was also added (in `tests/lib/versioncpp.cpp'). It
will just do the simplest possible job of printing the version number of
Gnuastro, but the important thing is that it is done within C++ which would
fail with the headers before this commit.

I tried temporarily renaming the `g++' executable file to see what would
happen if we don't have a C++ compiler, but apparently Autoconf is too smart
for that and was able to use `gcc' for the C++ compilation. I currently don't
have much experience with C++, but if it is possible to only have a C compiler
(without C++), then it would be great if we could detect that at configure
time and skip this (and possible future) test(s) if the user can't compile
C++.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/task/?13786>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]