我只是遇到一个非常特殊的问题,我无法理解它为什么会发生。
编译此代码:
#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;
}
最终显示:
[bcc32c错误] xlocinfo(184):名称空间“ std”中没有名为“ strftime”的成员
但是,我可以在Visual Studio中成功使用ENet。
我遵循的安装文档:http://enet.bespin.org/Installation.html
我知道ENet适用于VC ++,但是我必须在C ++ Builder中使用它。
注意:我没有使用“经典的” Borland编译器。
答案 0 :(得分:0)
您能否尝试从C ++编译器选项卡下的“选项”窗口中将“使用'经典的Borland编译器”选项更改为“真”。