目的: 调用RogueWave 的RWWString::hash 方法。
源码:
#include <iostream.h>
#include <rw/tools/wstring.h>
#include <string>
const int GUI_INSTANCE_LEN= 11;
void OSS(string input)
{
RWWString instance(input.c_str(),RWWString::ascii);
unsigned hashValue = instance.hash();
char buf[GUI_INSTANCE_LEN];
snprintf(buf,GUI_INSTANCE_LEN,(char*)"%X",hashValue);
cout<<"rw string :"<<buf<<endl;
}
int main()
{
string input;
cout<<"begin"<<endl;
while(cin>>input)
{
cout<<"you entere:"<<input<<endl<<endl;
cout<<"*****************************"<<endl;
cout<<"use Rogue Wave library:"<<endl;
OSS(input);
}
cout<<"exit";
}
编译选项:
aCC -o xyz -v -D_RWCONFIG=12d -DRW_THR_OS_VERSION_HPUX=0x1111 -I/opt/nokiaoss/pf3party_c/pf3rwt -lnsl -L/opt/nokiaoss/pf3party_c/pf3rwt/lib -lstreams1312d -ltls7712d
-ltrace2312d -lfactory1312d -lfunctor2312d -lfunctor_list2312d -lfunctor_map2312d -litc2312d -lpointer2312d -lserial1312d -lsync2312d -lthread2312d -lthrexcept2312d -ltypes1312d -AA test.C
遇到的问题:
(1) Include file <iosfwd> not found
缺少 -AA 参数
(2) -D_RWCONFIG
(3)
/usr/ccs/bin/ld: Unsatisfied symbols
RWWString::initChars(const char *,unsigned long) (first referenced in test.o) (code)
RWWString::hash(RWWString::caseCompare) const (first referenced in test.o) (code)
缺少-ltls7712d
分享到:
相关推荐
Rogue Wave Standard C++ Library的User Guide和 Class Reference,从网上下载了html和图片,然后整理成chm,方便查阅。
Rogue Wave Standard C++ Library的User Guide和 Class Reference,从网上下载了html和图片,然后整理成chm,方便查阅,还算完美。
Rogue Wave Standard C++ Library Iostreams and Locale User’s Guide
前端开源库-fuse-box-test-rogue-files保险丝盒测试流氓文件,空
我最近花了一些时间在Rogue Wave OpenLogic产品上。 OpenLogic是一个“开源”组件检查工具。
EA monos help for you
密室履带 CS 246 最终项目 - 简化的类 Rogue 游戏
流氓服务器 多人 rogue-like 游戏服务器。 介绍 即将推出。 执照 麻省理工学院
python库,解压后可用。 资源全名:rogue_gym-0.0.1-cp36-cp36m-manylinux1_x86_64.whl
The famous demonstration of optical rogue waves (RWs), a powerful tool to reveal the fundamental physics in different laser scenarios, opened a flourishing time for temporal statistics. Random fiber ...
安装使用npm install全局安装rogue-framework-cli : $ npm install -g rogue-framework-cli创建一个新项目准备项目的根目录: $ mkdir my-project$ cd my-project$ npm init 然后使用rogue init创建一个全新的Rogue...
OOP-Rogue Rogue 3.6.3 现代化 此存储库包含 Rogue 3.6.3 源代码。 对于我的 OOP 类,我们试图通过使用面向对象的技术以及删除不再有效的旧 C 样式代码来使代码库现代化。
Arduino-Rogue_Router.zip,Sparkfun Thingrogue_路由器的太阳能接入点文件服务器,Arduino是一家开源软硬件公司和制造商社区。Arduino始于21世纪初,深受电子制造商的欢迎,Arduino通过开源系统提供了很多灵活性。
Copyright (c) 1998-2017 Rogue Wave Software, Inc. All rights reserved. Visit http://www.zend.com This product is based on Eclipse technology. Visit http://www.eclipse.org ----------------------------...
rogue-registers-description-docs.zip
GSRogue-AppStore GS Rogue应用商店的应用商店存储库!
summer-migration.zip,简单数据库迁移库Summer Java数据库迁移
Pervy Rogue的AATOFL编辑 关于《柯尼的被遗弃:被遗忘的生命的故事》的最全面的编辑。使用将StoryMod.js放到您的AATOFL文件夹中。