小编Far*_*hat的帖子

Linux终端 - 错误:复合语句末尾的标签

我通过VMware Player将x64 Ubuntu Linux用作虚拟机.作为我项目的一部分,我需要安装一些库(fec-3.0.1).我是Linux新手,不擅长编码.

以下是配置成功后我在终端遇到的错误:

    farhat@ubuntu:~/project/fatcaps_v0.5/fec-3.0.1$ make
    gcc -g -O2 -I. -Wall    -c -o dotprod.o dotprod.c
    dotprod.c: In function ‘freedp’:
    dotprod.c:56:3: error: label at end of compound statement
       default:
       ^
    make: *** [dotprod.o] Error 1
Run Code Online (Sandbox Code Playgroud)

这是函数'freedp'的内容(起始行是55):

    /* Free a dot product descriptor created earlier */
    void freedp(void *p){
      switch(Cpu_mode){
      case PORT:
      default:
    #ifdef __i386__
      case MMX:
      case SSE:
        return freedp_mmx(p);
      case SSE2:
        return freedp_sse2(p);
    #endif
    #ifdef __VEC__
      case ALTIVEC:
        return freedp_av(p);
    #endif
      }
    }
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

c linux terminal gcc makefile

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

c ×1

gcc ×1

linux ×1

makefile ×1

terminal ×1