编译lib项目的时候,出现如下便宜错误:error C3646 : "inet_ntoa":unknown override specifier winsock2.h
error C2091 : function returns function
error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
error C2733 : second C linkage of overloaded function 'DECLARE_STDCALL_P' not allowed
error C2556 : 'int (_cdecl * DECLARE_STDCALL_P(hostent *))(const char *)' : overloaded functions only differ by return type 'int (_cdecl * DECLARE_STDCALL_P(hostent *))'我加了ws2_32.lib. 但是好象没有效果啊.请给个解决方案吧.
error C2091 : function returns function
error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
error C2733 : second C linkage of overloaded function 'DECLARE_STDCALL_P' not allowed
error C2556 : 'int (_cdecl * DECLARE_STDCALL_P(hostent *))(const char *)' : overloaded functions only differ by return type 'int (_cdecl * DECLARE_STDCALL_P(hostent *))'我加了ws2_32.lib. 但是好象没有效果啊.请给个解决方案吧.
解决方案 »
- 有没有GDI+腐蚀膨胀图片的例子?
- ListBox问题,在线等!!!!
- 在MFC中,如何能够得到一个按钮被按下和抬起呢?
- 绘图函数应该怎么编写
- 看着眼熟的请进(#define WIDTHBYTES(bits) (((bits) + 31) / 32 * 4) )
- 怎么编写符合WINAPI规范的dll输出函数
- 我想控制CComboBox中显示的项的数目,而不是其默认的项的数目,请问怎样才能做到?
- 用什么方法可以得到Windows的更新区域大小,作屏幕截图和远程控制用。
- 大家帮帮我,现在很急,使用ADO方式打开加有口令的ACCESS数据库有问题,应该怎么办? 大家帮忙UP一下,UP有分。
- suddy你好,CJ608例子编译出错帮我看一下???????????????
- 请教ado的一个问题,请大家帮帮忙,万分感谢了。
- 急,VS2005不能添加控件变量。
估计你inet_ntoa 等函数的使用的是linux版本的socket函数吧。改成winsok2.h 定义的那样就行了。