[ghemical-devel] libGhemical 1.90 compile issue

Jean Bréfort jean.brefort at normalesup.org
Mon Sep 19 03:03:45 EDT 2005


Le samedi 17 septembre 2005 à 22:31 -0800, Erik Gregg a écrit :
> Hi.  I recently tried to compile libGhemical 1.90 on a Fedora Core 4
> system with GCC 4.0.1.  Here's where it died:
> 
>  g++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -g -O2
> -Wp,-MD,.deps/search.pp -c search.cpp  -fPIC -DPIC -o .libs/search.o
> In file included from
> /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/strstream:51,
>                  from search.cpp:15:
> /usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one deprecated or
> antiquated header. Please consider using one of the 32 headers found
> in section 17.4.1.2 of the C++ standard. Examples include substituting
> the <X> header for the <X.h> header for C++ includes, or <iostream>
> instead of the deprecated header <iostream.h>. To disable this warning
> use -Wno-deprecated.
> search.h:46: error: ISO C++ forbids declaration of 'geomopt' with no type
> search.h:46: error: expected ';' before '*' token
> search.h:88: error: ISO C++ forbids declaration of 'geomopt' with no type
> search.h:88: error: expected ';' before '*' token
> search.h:129: error: ISO C++ forbids declaration of 'geomopt' with no type
> search.h:129: error: expected ';' before '*' token
> search.cpp: In constructor 'random_search::random_search(model*, i32s,
> i32s, i32s, i32s, i32s)':
> search.cpp:36: error: 'go' was not declared in this scope
> search.cpp: In destructor 'random_search::~random_search()':
> search.cpp:56: error: 'go' was not declared in this scope
> search.cpp:56: error: type '<type error>' argument given to 'delete',
> expected pointer
> search.cpp: In member function 'i32s random_search::TakeStep()':
> search.cpp:90: error: 'go' was not declared in this scope
> search.cpp:90: error: type '<type error>' argument given to 'delete',
> expected pointer
> search.cpp:91: error: 'go' was not declared in this scope
> search.cpp:97: error: 'go' was not declared in this scope
> search.cpp: In constructor
> 'systematic_search::systematic_search(model*, i32s, i32s, i32s, i32s,
> i32s)':
> search.cpp:145: error: 'go' was not declared in this scope
> search.cpp: In destructor 'systematic_search::~systematic_search()':
> search.cpp:172: error: 'go' was not declared in this scope
> search.cpp:172: error: type '<type error>' argument given to 'delete',
> expected pointer
> search.cpp: In member function 'i32s systematic_search::TakeStep()':
> search.cpp:215: error: 'go' was not declared in this scope
> search.cpp:215: error: type '<type error>' argument given to 'delete',
> expected pointer
> search.cpp:216: error: 'go' was not declared in this scope
> search.cpp:222: error: 'go' was not declared in this scope
> search.cpp: In constructor
> 'monte_carlo_search::monte_carlo_search(model*, i32s, i32s, i32s,
> i32s, i32s, i32s)':
> search.cpp:276: error: 'go' was not declared in this scope
> search.cpp: In destructor 'monte_carlo_search::~monte_carlo_search()':
> search.cpp:303: error: 'go' was not declared in this scope
> search.cpp:303: error: type '<type error>' argument given to 'delete',
> expected pointer
> search.cpp: In member function 'i32s monte_carlo_search::TakeStep()':
> search.cpp:342: error: 'go' was not declared in this scope
> search.cpp:342: error: type '<type error>' argument given to 'delete',
> expected pointer
> search.cpp:343: error: 'go' was not declared in this scope
> search.cpp:349: error: 'go' was not declared in this scope
> make[1]: *** [search.lo] Error 1
> 
> Any ideas would be greatly appreciated!  Thanks.

Try to include gemopt.h before search.h in search.cpp



More information about the ghemical-devel mailing list