简体   繁体   English

在C ++ Builder 10.3中使用ENet会导致“在命名空间std中没有名为'strftime'的成员”的问题

[英]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.

相关问题 c++ 编译失败并出现错误:命名空间“std”中没有名为“snprintf”的成员 - c++ compile fail with error: no member named 'snprintf' in namespace 'std' c++ using namespace std 导致 bind () 错误和迭代器放弃 - c++ using namespace std causes errors with bind () and a waiver with the iterator 在名称空间std中没有名为stoi的成员 - No Member named stoi in namespace std 命名空间“std”中没有名为“begin”的成员 - No member named 'begin' in namespace 'std' 命名空间&#39;std&#39;中没有名为&#39;size&#39;的成员 - No member named 'size' in namespace 'std' 名称空间“ std”中没有名为“ forward”的成员 - No member named 'forward' in namespace 'std' WinUsb with C++ Builder 10.3 社区版 - WinUsb with C++ Builder 10.3 community edition 卡特琳娜 C++:使用<cmath>标头产生错误:全局命名空间中没有名为“signbit”的成员</cmath> - Catalina C++: Using <cmath> headers yield error: no member named 'signbit' in the global namespace C ++编译错误-“命名空间std中没有名为&#39;function&#39;的类型” - C++ Compile Error - “no type named 'function' in namespace std” C++:错误:全局命名空间中没有名为“signbit”的成员 - C++: error: no member named 'signbit' in the global namespace
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM