[Dev-C++] Errors when compiling with STL linked
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Faust, M. <Mar...@as...> - 2003-02-25 12:31:19
|
Hi,
When compling the file
#include <iostream>
#include <stdlib.h>
#include <list>
using namespace std;
void f()
{
list<double> l;
for (int i=3D0; i<1000000;i++) l.push_back(i);
}
int main()
{
f();
system("PAUSE");
return 0;
}
with Dev-C++ 4.9.7.0 I get the following strange errors
std::_STL_mutex_lock::_M_acquire_lock()':
C:/Dev-Cpp/include/c++/bits/stl_threads.h:192: `_M_lock' undeclared (first
use
this function) In file included from C:/Dev-Cpp/include/c++/memory:55,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from test.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_alloc.h: At global scope:
C:/Dev-Cpp/include/c++/bits/stl_alloc.h:575: syntax error before `;' token
C:/Dev-Cpp/include/c++/bits/stl_alloc.h:575: confused by earlier errors,
bailing out make.exe: *** [test.o] Error 1 Execution terminated
What could be wrong with my settings?
M. Faust
|