Dev-C++ driving me crazy

Hi,

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
}


What could be the problem here?
What is the file extension? (It should be one of .cpp, .cxx, .cc, etc.)

Your syntax needs help. The switch is missing {} and the for is missing }.

Hope this helps.
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.
Topic archived. No new replies allowed.