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'
However i can use ENet in Visual Studio successfully.
The installation document that i followed: http://enet.bespin.org/Installation.html
I know ENet is for VC++ but i have to use this in C++ Builder.
Note: i'm not using the 'classic' Borland compiler.
您可以尝试从“ C ++编译器”选项卡下的“选项”窗口中将“使用'经典的Borland编译器”选项更改为“真”吗?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.