(1) Note Dev-C++ is not a compiler, its just an IDE, the compiler is GCC...
(2) This sort of question is better answered on the more general bloodshed forum, rather than the develpers forum. Near the top of the page is a link to "Forums", click it, then get the link to the Bloodshed forum...
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a problem with STL functions in Dev-C++ 4.9.8.1, or am I missing something obvious?
#include <iostream>
#include <stdlib.h>
#include <algorithm>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
string MyString;
MyString = "HeLlo wOrld";
cout << MyString << endl;
transform(MyString.begin(), MyString.end(), MyString.begin(), tolower);
cout << MyString << endl;
system("PAUSE");
return 0;
}
Compiler: Default compiler
Building Makefile: "D:\Projects\Test\Makefile.win"
Executing make clean
rm -f main.o MyTest.exe
g++.exe -c main.cpp -o main.o -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include"
main.cpp: In function `int main(int, char**)':
main.cpp:15: no matching function for call to `transform(
__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >, <unknown type>)'
g++.exe main.o -o "MyTest.exe" -L"C:/DEV-CPP/lib"
G__~1.EXE: main.o: No such file or directory
G__~1.EXE: no input files
Execution terminated
A couple of notes that might be helpful
(1) Note Dev-C++ is not a compiler, its just an IDE, the compiler is GCC...
(2) This sort of question is better answered on the more general bloodshed forum, rather than the develpers forum. Near the top of the page is a link to "Forums", click it, then get the link to the Bloodshed forum...
Wayne