[英]using ENet in C++ builder 10.3 causes “no member named 'strftime' in namespace std” issue
i'm just having an extraordinary issue that i cannot understand why it happens. 我有一个非常特殊的问题,我无法理解为什么会发生。
Compiling this code: 编译这段代码:
#include <vcl.h>
#include <windows.h>
#include "enet.h"
#pragma hdrstop
#pragma argsused
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "winmm.lib")
ENetHost* clientHost; // these two line cause the error
ENetPeer* clientPeer;
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
return 1;
}
ends up with this: 最终这样:
[bcc32c Error] xlocinfo(184): no member named 'strftime' in namespace 'std' [bcc32c错误] xlocinfo(184):名称空间“ std”中没有名为“ strftime”的成员
However i can use ENet in Visual Studio successfully. 但是我可以在Visual Studio中成功使用ENet。
The installation document that i followed: http://enet.bespin.org/Installation.html 我遵循的安装文档: http : //enet.bespin.org/Installation.html
I know ENet is for VC++ but i have to use this in C++ Builder. 我知道ENet适用于VC ++,但是我必须在C ++ Builder中使用它。
Note: i'm not using the 'classic' Borland compiler. 注意:我没有使用“经典的” Borland编译器。
您可以尝试从“ C ++编译器”选项卡下的“选项”窗口中将“使用'经典的Borland编译器”选项更改为“真”吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.