Author Topic: question: about the console application!  (Read 3437 times)

Offline gonboy

  • Multiple posting newcomer
  • *
  • Posts: 29
question: about the console application!
« on: August 12, 2008, 04:42:04 am »
Entironment: WinXP SP2 and codeblock nightly 5182 and GCC(In codeblocks dir)

Question:
           I write console application's codes.
   eg .
//main.c
//include "xxx.h"
int main(int argc, char *argv[])
{
      return 0;
}

//xxx.h
#ifndef _stddefx_h_
#define _stddefx_h_
    #include <_mingw.h>
    #include <accctrl.h>
    #include <aclapi.h>
#endif


      if I include "xxx.h" ,build message:
 
F:\C_code\debug2\main.c|1|error: stray '\239' in program|
F:\C_code\debug2\main.c|1|error: stray '\187' in program|
F:\C_code\debug2\main.c|1|error: stray '\191' in program|
||=== Build finished: 3 errors, 0 warnings ===|

     1 - But ,if I don't include "xxx.h" and then clean. but the message also display.so I couldn't build the program.
   
     2 - I remove the xxx.h from the project and clean ,clean workgroup, still the same problem.

     3 - I make a new project and all overwrite. that's ok. but if i select the main.c not to overwrite .the same problem.

     I know the "include files" is error.

     hope you answer! thank you very much.
« Last Edit: August 12, 2008, 04:52:13 am by gonboy »

Offline gonboy

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: question: about the console application!
« Reply #1 on: August 12, 2008, 05:33:48 am »

I think I know :

When I select " EDIT->File encoding->save byte..." will be wrong..........

could you explain the different of them?

thank you!