请问 sun salaris unix环境下是不是不能使用 ,其他的stl呢?

zsueyes 2006-03-23 12:40:06
如题,请大虾指教
...全文
109 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
晨星 2006-03-23
  • 打赏
  • 举报
回复
#include <queue>
using namespace std;
firetoucher 2006-03-23
  • 打赏
  • 举报
回复
#include <queue>
有啊
代码呢?错误信息呢?

FT
--
Anything one man can imagine, other men can make real.
firetoucher 2006-03-23
  • 打赏
  • 举报
回复
首先,你说的应该是solaris而不是salaris吧。

能!
GNU的在符合POSIX标准上面的系统都可以运行的阿。

相关信息可参见http://gcc.gnu.org/install/specific.html,举一个例子:
i?86-*-solaris2.10

Use this for Solaris 10 or later on x86 and x86-64 systems. This configuration is supported by GCC 4.0 and later versions only.

It is recommended that you configure GCC to use the GNU assembler in /usr/sfw/bin/gas but the Sun linker, using the options --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld.


FT
--
Anything one man can imagine, other men can make real.
zsueyes 2006-03-23
  • 打赏
  • 举报
回复
会不会是我的名字空间的问题,我把头文件贴一下,大家指导一下,是一个ftp处理的服务器端,本来是打算在windows或者是hpunix下用的,queue不用指定什么名字空间吧
#if !defined(AFX_STDAFX_H__5916C2FE_57D0_494F_9F05_A463779CD007__INCLUDED_)
#define AFX_STDAFX_H__5916C2FE_57D0_494F_9F05_A463779CD007__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


//////////////////////////////////////////////////////////////////////////
/// Socket socketwu.h 需要移动到前头
#include "socketwu.h"

//////////////////////////////////////////////////////////////////////////
// pub
//////////////////////////////////////////////////////////////////////////

#include "sys/types.h"
#include "sys/stat.h"
#include "stdio.h"
#include "time.h"
#include "cc++/thread.h"
#include "string"
#include "iostream.h"
#include "assert.h"
#include "pubfunction.h"
#include "transfilethread.h"
//////////////////////////////////////////////////////////////////////////
/// IBSS
//////////////////////////////////////////////////////////////////////////

#include "atmi.h"
#include "wfml.h"
#include "dboper.h"
#include "imapplog.h"
#include "binbcdintconv.h"
#include "imtool.h"
#include "cfgoption.h"
#include "public.h"

#pragma warning(disable:4786)

#ifndef _HP_UNIX
using namespace std;
#endif //#ifndef _HP_UNIX

#ifndef _HP_UNIX
#ifdef CCXX_NAMESPACES
using namespace ost;
#endif //#ifdef CCXX_NAMESPACES
#endif //#ifndef _HP_UNIX

#ifndef TUXEDO_UTILITY
#define TUXEDO_UTILITY
#endif

#define MAX_STRLEN 1024

#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#include <dirent.h>
#endif

#include <queue>


//////////////////////////////////////////////////////////////////////////
/// IConfig
//////////////////////////////////////////////////////////////////////////
#include "IConfig.h"

zsueyes 2006-03-23
  • 打赏
  • 举报
回复
昨天去sun的测试机上编译,
void findFile(queue<char*>& queFileName, const char* pszPath, const char* pszFile, const short sLenDate);
这个通不过,拒别人说queue在sun下用不了,想来确认一下,我在HPUNIX下编译是可以成功的
Jedimaster 2006-03-23
  • 打赏
  • 举报
回复
各种平台应该都是一样的吧

找编译器,肯定支持stl的
晨星 2006-03-23
  • 打赏
  • 举报
回复
虽然没玩过Sun Solaris,但感觉不会啊。难道Sun Solaris上的C++编译器都不遵循C++标准么?

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧