小编sen*_*mar的帖子

为什么全局变量没有用字符串初始化我在extern变量中给出的内容

//s_request_view() constructor is declared as below
namespace Identity_VIEW
{
Published_view_identity s_request_view("SAMPLE");
};

//The constructor is called in another source file as below,
bind_view(Identity_VIEW::s_request_view);
Run Code Online (Sandbox Code Playgroud)

这个相同的代码在Windows上工作正常,但在SBC(PowerPC)上,s_request_view作为NULL传递.

谁能帮助我找出它为什么表现不同?

c++ powerpc

2
推荐指数
1
解决办法
256
查看次数

标签 统计

c++ ×1

powerpc ×1