Library troubles with makefile
I am trying to install Smoldyn, a lesser known open-source simulation software, on my Fedora system, and I keep getting library-related errors during the make-phase of the "configure/make/make install" process.
So two questions about this:
1) Initially I was having trouble locating required trig. functions like "sin" and "cos" and I (believe I) solved this by including the "tgmath.h" library in every source ".c" file that included the "math.h" library. Why would my "math.h" library not have the basic trig functions?
2) The error I now get is this:
Quote:
if gcc -DHAVE_CONFIG_H -I. -I. -I../../source -pthread -g -O2 -MT rxnparam.o -MD -MP -MF ".deps/rxnparam.Tpo" -c -o rxnparam.o rxnparam.c; \
then mv -f ".deps/rxnparam.Tpo" ".deps/rxnparam.Po"; else rm -f ".deps/rxnparam.Tpo"; exit 1; fi
rxnparam.c: In function 'rdfmaketable':
rxnparam.c:554: error: assignment of read-only variable '__tgmres'
rxnparam.c:554: error: assignment of read-only variable '__tgmres'
rxnparam.c:554: error: assignment of read-only variable '__tgmres'
rxnparam.c:554: error: assignment of read-only variable '__tgmres'
rxnparam.c:554: error: assignment of read-only variable '__tgmres'
rxnparam.c:554: error: assignment of read-only variable '__tgmres'
make[3]: *** [rxnparam.o] Error 1
make[3]: Leaving directory `/home/burritoman/Desktop/smoldyn-2.03/source/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/burritoman/Desktop/smoldyn-2.03/source'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/burritoman/Desktop/smoldyn-2.03/source'
make: *** [all-recursive] Error 1
I discovered that __tgmres is some seemingly unimportant variable in the tgmath.h library. What is this error related to?
Any help or observations are seriously appreciated. Let me know if I should provide more info