December 31, 2007 dmc 8.50.4n Error: undefined identifier '_DEFAULT_SIZE' | ||||
---|---|---|---|---|
| ||||
G:\dm\anuj>cat set.cpp #include <iostream> #include <set> #include <iterator> using namespace std; struct ltstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) < 0; } }; int main() { const int N = 1; const char* a[N] = {"isomer"}; set<const char*, ltstr> A(a, a + N); copy(A.begin(), A.end(), ostream_iterator<const char*>(cout, " ")); } G:\dm\anuj>dmc -v1 -IG:\dm\STLport\stlport set.cpp G:\dm\STLport\stlport\stl/_string.c(637) : Error: undefined identifier '_DEFAULT_SIZE' --- errorlevel 1 G:\dm\anuj>dmc -v2 -IG:\dm\STLport\stlport set.cpp |more scppn -v2 -IG:\dm\STLport\stlport set.cpp Digital Mars C/C++ Compiler Version 8.50.4n Copyright (C) Digital Mars 2000-2006. All Rights Reserved. Written by Walter Bright www.digitalmars.com ... It would be nice if a tested/stable STL & Boost library shipped as part of the standard compiler. |
December 31, 2007 Re: dmc 8.50.4n Error: undefined identifier '_DEFAULT_SIZE' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Raj Ohm | smaller: G:\dm\anuj>dmc -v1 cin.cpp -Ig:\dm\STLport\stlport g:\dm\STLport\stlport\stl/_string.c(637) : Error: undefined identifier '_DEFAULT_SIZE' --- errorlevel 1 G:\dm\anuj>cat cin.cpp #include <iostream> void foo() { std::cout << "h" << std::endl; } |
Copyright © 1999-2021 by the D Language Foundation