iCAx开思工具箱

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 24667|回复: 1
打印 上一主题 下一主题

谁能帮我解决一下问题?谢谢了

[复制链接]
跳转到指定楼层
楼主
发表于 2005-12-8 10:23:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
下面是我用 UF_CURVE_create_line这个函数的一段代码:
        UF_CURVE_line_t line1 ;
        UF_CURVE_line_t line2 ;
        UF_CURVE_line_t line3 ;
   
  line1.start_point[0] = node[n1].x ;
  line1.start_point[1] = node[n1].y ;
  line1.start_point[2] = node[n1].z ;
  line1.end_point[0] = node[n2].x ;
  line1.end_point[1] = node[n2].y ;
  line1.end_point[2] = node[n2].z ;
   
  line2.start_point[0] = node[n2].x ;
  line2.start_point[1] = node[n2].y ;
  line2.start_point[2] = node[n2].z ;
  line2.end_point[0] = node[n3].x ;
  line2.end_point[1] = node[n3].y ;
  line2.end_point[2] = node[n3].z ;
  line3.start_point[0] = node[n3].x ;
  line3.start_point[1] = node[n3].y ;
  line3.start_point[2] = node[n3].z ;
  line3.end_point[0] = node[n1].x ;
  line3.end_point[1] = node[n1].y ;
  line3.end_point[2] = node[n1].z ;
        tag_t line[3] ;
UF_CURVE_create_line(&line1 , &line[0]) ;
UF_CURVE_create_line(&line2 , &line[1]) ;
UF_CURVE_create_line(&line3 , &line[2]) ;


运行之后出现下面的错误:

D:\CONTOUR\contour.c(154) : error C2275: 'UF_CURVE_line_t' : illegal use of this type as an expression
        e:\program files\eds\unigraphics nx 2.0\ugopen\uf_curve.h(221) : see declaration of 'UF_CURVE_line_t'
D:\CONTOUR\contour.c(154) : error C2146: syntax error : missing ';' before identifier 'line1'
D:\CONTOUR\contour.c(154) : error C2065: 'line1' : undeclared identifier
D:\CONTOUR\contour.c(155) : error C2275: 'UF_CURVE_line_t' : illegal use of this type as an expression
        e:\program files\eds\unigraphics nx 2.0\ugopen\uf_curve.h(221) : see declaration of 'UF_CURVE_line_t'
D:\CONTOUR\contour.c(155) : error C2146: syntax error : missing ';' before identifier 'line2'
D:\CONTOUR\contour.c(155) : error C2065: 'line2' : undeclared identifier
D:\CONTOUR\contour.c(156) : error C2275: 'UF_CURVE_line_t' : illegal use of this type as an expression
        e:\program files\eds\unigraphics nx 2.0\ugopen\uf_curve.h(221) : see declaration of 'UF_CURVE_line_t'
D:\CONTOUR\contour.c(156) : error C2146: syntax error : missing ';' before identifier 'line3'
D:\CONTOUR\contour.c(156) : error C2065: 'line3' : undeclared identifier
D:\CONTOUR\contour.c(158) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(159) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(160) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(161) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(162) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(163) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(165) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(166) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(167) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(168) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(169) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(170) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(172) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(173) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(174) : error C2224: left of '.start_point' must have struct/union type
D:\CONTOUR\contour.c(175) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(176) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(177) : error C2224: left of '.end_point' must have struct/union type
D:\CONTOUR\contour.c(182) : error C2275: 'tag_t' : illegal use of this type as an expression
        e:\program files\eds\unigraphics nx 2.0\ugopen\uf_defs.h(53) : see declaration of 'tag_t'
D:\CONTOUR\contour.c(182) : error C2146: syntax error : missing ';' before identifier 'line'
D:\CONTOUR\contour.c(182) : error C2065: 'line' : undeclared identifier
D:\CONTOUR\contour.c(182) : error C2109: subscript requires array or pointer type
D:\CONTOUR\contour.c(197) : warning C4133: 'function' : incompatible types - from 'int *' to 'struct UF_CURVE_line_s *'
D:\CONTOUR\contour.c(197) : error C2109: subscript requires array or pointer type
D:\CONTOUR\contour.c(197) : error C2102: '&' requires l-value
D:\CONTOUR\contour.c(197) : error C2198: 'UF_CURVE_create_line' : too few actual parameters
D:\CONTOUR\contour.c(198) : warning C4133: 'function' : incompatible types - from 'int *' to 'struct UF_CURVE_line_s *'
D:\CONTOUR\contour.c(198) : error C2109: subscript requires array or pointer type
D:\CONTOUR\contour.c(198) : error C2102: '&' requires l-value
D:\CONTOUR\contour.c(198) : error C2198: 'UF_CURVE_create_line' : too few actual parameters
D:\CONTOUR\contour.c(199) : warning C4133: 'function' : incompatible types - from 'int *' to 'struct UF_CURVE_line_s *'
D:\CONTOUR\contour.c(199) : error C2109: subscript requires array or pointer type
D:\CONTOUR\contour.c(199) : error C2102: '&' requires l-value
D:\CONTOUR\contour.c(199) : error C2198: 'UF_CURVE_create_line' : too few actual parameters
Error executing cl.exe.
Creating browse info file...

CONTOUR.dll - 40 error(s), 4 warning(s)

别人都跟我用的一样,为什么我的出这么多错误呢?
望大侠们指点我一下,谢谢了
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 支持支持
沙发
发表于 2006-12-13 13:54:42 | 只看该作者

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手板模型制作,在线3D打印服务

QQ|小黑屋|手机版|开思工具箱 CAD工具箱_CAM工具箱  

GMT+8, 2024-12-23 18:40 , Processed in 0.016563 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表