[ghemical-devel] ghemical-2.98 released

Tommi Hassinen Tommi.Hassinen at uku.fi
Thu Jul 31 08:42:29 EDT 2008


i get this error when building libghemical:

if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I.  -I../src    -g -O2 -MT sasaeval.lo -MD -MP -MF ".deps/sasaeval.Tpo" -c -o sasaeval.lo sasaeval.cpp; \
        then mv -f ".deps/sasaeval.Tpo" ".deps/sasaeval.Plo"; else rm -f ".deps/sasaeval.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I../src -g -O2 -MT sasaeval.lo -MD -MP -MF .deps/sasaeval.Tpo -c sasaeval.cpp  -fPIC -DPIC -o .libs/sasaeval.o
In file included from sasaeval.cpp:21:
sasaeval.h: In member function ‘void cg_nbt3_coi::AddIPD(f64*, i32u)’:
sasaeval.h:157: error: ‘EXIT_FAILURE’ was not declared in this scope
sasaeval.h:157: error: ‘exit’ was not declared in this scope


Hello, I think adding
#include <stdlib.h>
to the beginning of sasaeval.h will help in this.


sasaeval.cpp: In member function ‘void sasaeval::Evaluate(i32s)’:
sasaeval.cpp:284: error: ‘sort’ was not declared in this scope
make[2]: *** [sasaeval.lo] Error 1
make[2]: Leaving directory `/tmp/libghemical-2.98/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/libghemical-2.98/src'
make: *** [all-recursive] Error 1


The "sort" here is supposed to be the stdlib sort method.
Please try adding:

#include <vector>
using namespace std;

to the beginning of sasaeval.cpp.

The "sasaeval" thing is a sphere surface area calculator which has existed in the source also before but is now relocated. It used to be in eng1_sf.h and eng1_sf.cpp files before.



More information about the ghemical-devel mailing list