cschreib / fastpp

C++ version of the SED fitting code FAST (Kriek et al. 2009); it's faster, uses less memory, and has more features.
MIT License
27 stars 4 forks source link

Getting error while running "make install" #14

Closed Najmeh-Emami closed 3 years ago

Najmeh-Emami commented 3 years ago

Hello,

I am trying to install fast++ on my mac, which has an updated XCode, C++ compiler, git, and CMake. However, while I run the "make install" command, I get an error saying :

".../fastpp/external/cfitsio/group.c:5476:3: error: implicit declaration of function 'getcwd' is invalid in C99 [-Werror,-Wimplicit-function-declaration]"

I wonder whether this error is related to any incompatibility between the recent Mac version (macOS 11.4) and the current fast++ code or there is an issue with my installations.

Any help on this is really appreciated!

cschreib commented 3 years ago

Thanks for reporting this. It looks like a configuration issue with CFITSIO. I have committed a fix on the master branch here, that should get you going until they fix the problem upstream. Please let me know if the fix worked for you or not!

Najmeh-Emami commented 3 years ago

Thank you so much for the help! It fixed the problem and fast++ is installed now!

cschreib commented 3 years ago

Great! Happy fitting :)