Menu

#10 problem configure

open
nobody
None
5
2004-02-24
2004-02-24
inetter
No

hi,

i am trying to build VDK on a SUSE-9.0 box. i get the
following error code:

[...]
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a
cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking if C++ compiler supports bool (required)... yes
checking if C++ compiler supports templates well enough
(required)... yes
checking if C++ environment has working auto_ptr<>... no
checking if C++ environment has working string class
(required)... configure: warning: C++ compilers string
support does not work
no
checking if C++ environment provides all required
features... no
configure: error: Your compiler is not powerful enough
to compile VDK. If it should be, see config.log for
more information of why it failed.

and in "config.log":

[...]
configure:2097: checking for c++
configure:2129: checking whether the C++ compiler (c++
) works
configure:2145: c++ -o conftest conftest.C
-L/opt/gnome/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgmodule -lglib -ldl
-lXi -lXext -lX11 -lm 1>&5
configure:2171: checking whether the C++ compiler (c++
) is a cross-compiler
configure:2176: checking whether we are using GNU C++
configure:2185: c++ -E conftest.C
configure:2204: checking whether c++ accepts -g
configure:2236: checking how to run the C++ preprocessor
configure:2254: c++ -E conftest.C >/dev/null
2>conftest.out
configure:2292: checking if C++ compiler supports bool
(required)
configure:2305: c++ -c conftest.C 1>&5
configure:2323: checking if C++ compiler supports
templates well enough (required)
configure:2341: c++ -o conftest conftest.C
-L/opt/gnome/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgmodule -lglib -ldl
-lXi -lXext -lX11 -lm 1>&5
configure:2360: checking if C++ environment has working
auto_ptr<>
configure:2373: c++ -c conftest.C 1>&5
configure: In function `int main()':
configure:2368: error: `auto_ptr' undeclared (first use
this function)
configure:2368: error: (Each undeclared identifier is
reported only once for
each function it appears in.)
configure:2368: error: parse error before `>' token
configure: failed program was:
#line 2362 "configure"
#include "confdefs.h"

#include <memory>

int main() {

auto_ptr<int> a;

; return 0; }
configure:2394: checking if C++ environment has working
string class (required)
configure:2415: c++ -o conftest conftest.C
-L/opt/gnome/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgmodule -lglib -ldl
-lXi -lXext -lX11 -lm 1>&5
configure:2401: error: parse error before `&' token
configure:2403: error: parse error before `&' token
configure: In member function `void foo::f(...)':
configure:2404: error: `s' undeclared (first use this
function)
configure:2404: error: (Each undeclared identifier is
reported only once for
each function it appears in.)
configure: failed program was:
#line 2396 "configure"
#include "confdefs.h"

#include <string>
class foo {
public:
void f(const string &s);
};
void foo::f(const string &s) {
f(s.c_str());
}
int main() {

foo f1;
f1.f("test");

; return 0; }
configure:2434: checking if C++ environment provides
all required features

what am i missing?

thanx

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.