Pages: [1]   Go Down
Author Topic: GCC Versions across platforms  (Read 510 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I rarely post to the arduino forum but yesterday I was working on a project with somebody else and so I wrote a sketch with C++ lambdas in it. I was working from linux so everything compiled and it worked great (yes, lambdas are awesome). When I sent my sketch off to the person who was to use it it raised errors due to the lambdas so I spent a whole lot of time rewriting the code to use function pointers (yew). But the issue I see is that there is no consistency accross the different platforms as to the GCC version, but IDE version stays at 1.0.5. Of course this may be due to the fact that I used the ubuntu package rather than download the ide separately. But I still think that the GCC versions and configurations should be same accross platforms. And seriously, windows GCC should be updated to work with C++ lambda functions. 
Logged

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 69
Posts: 2164
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

They are already working on it.

http://forum.arduino.cc/index.php?topic=176498.msg1585982#msg1585982

That link is also part of a thread for an IDE that does support 4.8.1
Logged


SF Bay Area (USA)
Online Online
Tesla Member
***
Karma: 132
Posts: 6738
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

also, they fixed the unix download (but perhaps not the ubuntu package) to include the older compiler, so it should be compatible with the other OSes.
Logged

Pages: [1]   Go Up
Jump to: