【发布时间】:2014-01-01 03:51:04
【问题描述】:
我尝试调用具有以下签名的函数:
I32 contour8(image *a, I32 x0, I32 y0, I32 dir, I32 thr, U32 lng, U32 **dst);
使用此代码:
int posx = 100, posy = 100, dx = 300, dy = 300;
long length = 5000;
int threshold = 125;
int lx, x0 = 0, y0 = 0;
int res1 = 0, res2 = 0, *rlc, *input, i;
long dest1, dest2, desttemp, addr;
char c;
image Area;
desttemp = dest1;
res1 = contour8(&Area, x0, y0, ~2, threshold, length, &desttemp);
但是编译时出现以下错误:
error argument of type "long *" is incompatible with parameter of type "U32 **"
是什么导致了这个错误?
【问题讨论】:
-
为什么有 4 个人投票关闭这个?这个问题不是题外话,因为张贴者没有要求代码。如果您只是认为某个问题不好,那么正确的做法是投反对票,而不是关闭投票。不要滥用您的声誉特权。
-
我同意。这个问题不好,应该改写。也许因为这个原因而关闭,但它不是题外话,
标签: c++ c type-conversion