Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MinGW 4.8.1

33 views
Skip to first unread message

Doug Mika

unread,
Apr 14, 2015, 3:50:44 PM4/14/15
to
Hi

I supposedly have MinGW version 4.8.1 (gcc --version yields that version) and I'm using NetBeans as an IDE. However, when I try to compile my code, the following line poses an issue:

auto iElement = find_if(vecIntegers.begin(), vecIntegers.end(), myObj);

and the complaint is that iElement does not name a type. When I replace the line with

std::vector<int>::const_iterato iElement = ...;

the program compiles.

BUT according to http://gcc.gnu.org/gcc-4.8/cxx0x_status.html, MinGW 4.8.x is supposedly supposed to support the auto typed variables

Anyone have any idea why auto doesn't seem to work?
Message has been deleted

Doug Mika

unread,
Apr 14, 2015, 4:22:40 PM4/14/15
to
Thanks, that worked.
0 new messages