Error initializer element is not constant

前端 未结 3 630
感动是毒
感动是毒 2021-01-11 22:49

I am having trouble with my code, and I can not solve ....

the code snippet where the error is reported:

static FILE *debugOut = stderr;
static FILE          


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-11 23:37

    try doing it in main for example:

    static FILE *debugOut;
    static FILE *infoOut;
    
    main(){
        debugOut = stderr;
        infoOut = stdout;
    
    
    }
    

提交回复
热议问题