C ++ IntelliSense未定义错误 [英] C++ IntelliSense Undefined Error

查看:213
本文介绍了C ++ IntelliSense未定义错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我这样做时:

When I do:

#if !defined(CHECK_EMBEDDED_DIFFERENCES) || !defined(EMBEDDED_LIBRARY)
  Vio *vio;
  unsigned char *buff,*buff_end,*write_pos,*read_pos;
  mysql_socket fd;	


我进入intelliSense:标识符"mysql_socket"未定义
c:\ program files \ mysql \ mysql服务器5.5 \ include \ mysql_com.h

我正在Windows 7上使用Visual Sturio2010.将导致此错误的原因是什么?


I get in intelliSense: identifier "mysql_socket" is undefined
c:\program files\mysql\mysql server 5.5\include\mysql_com.h

I''m using Visual Sturio 2010 with Windows 7. What would cause this error?

推荐答案

正在寻找类型"mysql_socket",并且可以找不到任何地方定义它.您认为它在哪里定义?

您是否已包含所有必需的标头(.h)文件来设置MySQL API所需的定义?您可能不仅需要mysql_com.h.

另外,我也不熟悉该API,但是在Google上快速搜索mysql_socket可能会建议您改用MYSQL_SOCKET-C/C ++/C#和相关语言的大小写很重要.

希望这会有所帮助.
It''s looking for a type ''mysql_socket'' and can''t find it defined anywhere. Where do you think it is defined?

Have you included all necessary header (.h) files to set up the definitions required for the MySQL API? You may need more than just mysql_com.h.

Also, I''m not familiar with that API, but a quick search for mysql_socket on Google suggests that you might need MYSQL_SOCKET instead - capitalisation matters in C/C++/C# and related languages.

Hope this helps.


这篇关于C ++ IntelliSense未定义错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆