in this little snippet, I get the error: file format not recognized; treating as linker script
snytax error
ld returned 1 exit status
[Build Error] [AT_work.exe] Error 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
void setPresets(long *offset, long *gain)
{
char instream[10];
for(int i = o; i < 24; i++)
{
offset += i;
switch (i)
case 0:
//do stuff
break;
//etc
}
Er, sorry. The switch(){} and for(){} syntax is incomplete here, but should not be a problem in the actual code (I was able to write a workaround, but... well, it's not as pretty as it could be, plus it's using mostly C stuff, not C++). Oh well, I might have to leave it at that.
I'm guessing it's something to do with Dev-C++'s MingW, but I'm not entirely sure.