Menu

#94 cppdemo compile error with GCC 4.3.0

open
7
2009-01-09
2009-01-09
Harald Kipp
No

Trying to compile app/cppdemo/cppdemo.cc with

avr-gcc (WinAVR 20080610) 4.3.0

gives

cppdemo.cc:38: error: template with C linkage
../.././nut/include/cpp/nutcpp.h: In function 'int _cxx_main_()':
../.././nut/include/cpp/nutcpp.h:65: error: previous declaration of 'int _cxx_main_()' with 'C++' linkage
cppdemo.cc:74: error: conflicts with new declaration with 'C' linkage
cppdemo.cc: At global scope:
cppdemo.cc:108: error: expected `}' at end of input
cppdemo.cc:108: error: expected `}' at end of input
cppdemo.cc:108: error: expected `}' at end of input
cppdemo.cc:108: error: expected `}' at end of input

Discussion


Log in to post a comment.

MongoDB Logo MongoDB