I dont get this'
Im practiceing with some redirections. I wrote this and it works fine in my IDE using gnu
I put the same thing in my text editor and run it using g++ and all i get back is these rediculous compile errors
printf("This came from test file %s \n\n\n\n\n",my_string);
I dont get it
warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char **’ [-Wformat]
Why will it let me use that little bit of code in my ide but not off the command line
As i said i am trying ot get familiar with redirections. so im using the command line to read in a few lines of test i have stored in a .dat
fyi im on ubuntu
if that matters
Can someone please help
Is it just a warning and not an error?