[ghemical-devel] ghemical-2.98 released

Michael Galloway mgx at ornl.gov
Thu Jul 31 11:19:13 EDT 2008


On Thu, Jul 31, 2008 at 03:42:29PM +0300, Tommi Hassinen wrote:
> 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.
>

nope, did not resolve it:

 g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I../src -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -MT sasaeval.lo -MD -MP -MF .deps/sasaeval.Tpo -c sasaeval.cpp  -fPIC -DPIC -o .libs/sasaeval.o
sasaeval.cpp: In member function 'void sasaeval::Evaluate(i32s)':
sasaeval.cpp:287: error: 'sort' was not declared in this scope
make[2]: *** [sasaeval.lo] Error 1
make[2]: Leaving directory `/usr/local/libghemical-2.98/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/libghemical-2.98/src'
make: *** [all-recursive] Error 1

 




More information about the ghemical-devel mailing list