473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

looking for version of portfwd ported to HPUX

I'm looking for a version of this code that has been ported to make
cleanly under HPUX11i. I'm not a C++ progammer and am struggling with
the compiler errors:

vector.hpp:55: error: declaration of `operator<<' as non-function
vector.hpp:55: error: expected `;' before '<' token
Line 55 of vector.hpp:
friend std::ostream& operator << <T> (std::ostream& out, const
vector& v);

Jul 23 '05 #1
1 1282
ge**************@verizon.com wrote:
I'm looking for a version of this code that has been ported to make
cleanly under HPUX11i. I'm not a C++ progammer and am struggling with
the compiler errors:

vector.hpp:55: error: declaration of `operator<<' as non-function
vector.hpp:55: error: expected `;' before '<' token
Line 55 of vector.hpp:
friend std::ostream& operator << <T> (std::ostream& out, const
vector& v);

Can't be answered without more context. I suspect however that if we
are inside the definition of the vector template itself, it should read:
frind std::ostream& operator << <> (std::ostream& out, const vector<T>& v);

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Angie | last post by:
Hello, My name is Angela Mastrodonato. I'm a web designer who would like the assistance of a php programmer. Some of my clients have requested more dynamic web sites, and I am in the beginning...
1
by: Scott Holmes | last post by:
I've yet to write anything worthwhile with Python, but I have been working my way through the O'Reilly books and scanning this list. I am considering porting a legal case management system to...
0
by: Christian Lair | last post by:
Does anyone have a working unpack template for the utmp file on HPUX? I've figured out the Solaris and AIX templates but I just can't get the HPUX one working. Searches of past usenet posts have...
3
by: Jeremy Lemaire | last post by:
Hello, I am working on cross platform code that is displaying a huge memory leak when compiled on 11.00 HPUX using the aCC -AA flag. It is not leaking on NT, LINUX, Solaris, or HPUX without the...
3
by: Rolf Hemmerling | last post by:
Hello ! Since which Gnu-C++ version ( 3.x.x, 2.x.x ) is there support für C++ Standard Library ( STL ), i.e. since which version is STL shipped with Gnu-C++, "usually" ? Is there any history...
0
by: alokverma | last post by:
Hi all, I am trying to compile some code on HP-UX-Itanium faluire. using aCC: HP C/aC++ B3910B A.06.12 I have written a sample code below and using the following compilation command. *aCC...
4
by: Denny | last post by:
I currently use C compiler on HP-UX B.11.00 machine but I don't know how to check its version. I had used cc --version and cc -version command. Of course it didn't show a message which I wanted......
3
by: amit2781 | last post by:
I am trying to build the my project on HPUX (HP-UX oscar B.11.11 U 9000/800 741028561 unlimited-user license) which access the Mysql library. But it is giving error as : Error :...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.