Jan 19, 2016 at 4:28pm UTC
the following is not working for me , i am getting error "expected ')' before numeric constant"
char line[100];
string lineStr(line,50);
Jan 19, 2016 at 4:46pm UTC
Please show the smallest possible complete program that illustrates your problem.
Jan 19, 2016 at 4:47pm UTC
put your full program please
Jan 19, 2016 at 5:41pm UTC
Is this a C or C++ program? It looks like a C program to me.
Jan 19, 2016 at 6:20pm UTC
why is my option not working ? i saw many places on web people using that syntax
also with this new code iam getting the following error:
expected expression before ":" token
label 'std' defined but not used
this is AVR GCC which is a C++ for micro contollers.
Last edited on Jan 19, 2016 at 6:24pm UTC
Jan 19, 2016 at 6:39pm UTC
but string.h comes with AVRGCC so what is it containing if not string functions?
Jan 19, 2016 at 6:56pm UTC
The <string.h> include file is a C header not a C++ header. You can use character strings but not C++ std::strings. I would suggest that you stick with C with this compiler.
Jan 19, 2016 at 7:02pm UTC
ok thanks !
please take a look at my other post , can you suggest the C solution for what i want to try?