c语言-C语言编译报错出现C2143

问题描述

C语言编译报错出现C2143

void Linelinktoarray(EdgePoint____* edgePoint,int *arrayx,int *arrayy,int &number,int GradMain,int &Sumx,int &Sumy); EdgePoint已定义,为嘛会出现:error C2143:语法错误:缺少”)“(在”&“的前面)

解决方案

下划线呢?难道就不算定义的不部分???
难道是你的输出有误。

解决方案二:

要看完整的程序,有时候错误提示只能作为参考

解决方案三:

头文件是否正确包含,看一下你的代码

时间: 2024-08-10 04:59:00

c语言-C语言编译报错出现C2143的相关文章

c语言-IAR编译c程序,编译报错:out of memory

问题描述 IAR编译c程序,编译报错:out of memory IAR编译c程序,电脑cpu占用率一下子从30%跑到了99%,接着编译报错:out of memory,难道这对电脑内存也有要求?? 刚用这个编译器,求大神解答 解决方案 你关掉iar,重新打开,或者重启一下电脑,试试. 或者这个可能与你的cpu芯片的分区表有关系,不知道用的什么芯片,芯片内部Flash多大,或者是否用了外部Flash,你的程序的编译结果可能超出了Flash的范围因此报错.

c语言-关于extern char *arr[];编译报错的问题

问题描述 关于extern char *arr[];编译报错的问题 #include #include extern char *arr[];//在这行报错 int main(){ int i=0; while(arr[i++]) printf("%sn",arr[i]); system ("pause"); return 0; } 用VS2010编译这段代码时报错: IntelliSense: 不允许使用返回数组的函数 解决方案 通过论坛求助,编译已不再报错,以下

c语言-编译报错,destroyList要先声明后使用,但是为什么initSqlist不报错

问题描述 编译报错,destroyList要先声明后使用,但是为什么initSqlist不报错 #include #include //定义一个三元数组 typedef struct Sqlist{ int * elem;//起始地址 int length;//初始长度 int listSize;//线性表容量 }Sqlist; int main(int argc, char *argv[]) { Sqlist q; initSqlist(&q,10); //destroyList(&q)

OS X下gcc编译报错,Xcode带的gcc

问题描述 OS X下gcc编译报错,Xcode带的gcc 错误是 dpc2sim.a file was built for archive which is not the architecture being linked (x86_64) 用Data Prefetch Championship给的framework写prefetch的程序http://comparch-conf.gatech.edu/dpc2/想先跑跑人家给的example,可是编译的时候就报错了.我用的是OS X,gcc版

apache 编译报错:undefined reference to `apr_array_clear'

apache 编译报错: modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange': byterange_filter.c:(.text+0x1201): undefined reference to `apr_array_clear' collect2: ld returned 1 exit status make[1]: *** [httpd] Error 1 make[1]: L

searchpaths-mac终端编译报错百试不得其解怎么办?

问题描述 mac终端编译报错百试不得其解怎么办? Classes/AppDelegate.cpp:85: error: 'class cocos2d::CCFileUtils' has no member named 'setSearchPaths'make: *** [obj/local/armeabi/objs-debug/game_shared/__/__/Classes/AppDelegate.o] Error 1 说是没有这个成员函数 可是我查看了 那个类里明明有啊 我的版本cocos

declspec-vs2008编译报错如下,求助!

问题描述 vs2008编译报错如下,求助! 1>QAxContainerd.lib(qaxobject.obj) : warning LNK4217: 本地定义的符号 ?qt_metacall@QObject@@UAEHW4Call@QMetaObject@@HPAPAX@Z (public: virtual int thiscall QObject::qt_metacall(enum QMetaObject::Callintvoid * *)) 在函数 ""public: vi

vtk-求助:VTK使用,编译报错

问题描述 求助:VTK使用,编译报错 在使用VTK5.10库进行开发时编译时遇到这样的问题:错误 1 error C2664: "vtkSmartPointerBase &vtkSmartPointerBase::operator =(vtkObjectBase *)": 不能将参数 1 从"vtkImageData *"转换为"vtkObjectBase *" C:vtk510VTK5.10.1CommonvtkSmartPointer

android中应用编译报错

问题描述 android中应用编译报错 一个带下拉列表的应用,在编译的时候报错: The constructor ArrayAdapter(LayoutNext, int, String[]) is undefined 不知道应该怎么解决? 我的实现代码: public class LayoutNext extends Fragment implements OnClickListener,OnItemSelectedListener{ TimePicker timepicker; privat