[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

3487.0. "Vector, template matches no __pl??" by KERNEL::PULLEY (Come! while living waters flow) Wed Mar 12 1997 13:52

Hi,

I've a customer using Digital UNIX v3.2d, C++ v5.5.
I'm just starting to get to grips with C++, so if there's a better title
for this please let me know.
Do I need the code to take this any further?

Below is what the customer has to say.

Thanks,
Steve.

Here is the compilation statement and error message I am getting
from my perfectly good code :

SOURCE=fields/Fields/patchFieldFields/patchFieldFields.C ;
cxx -verbose -DdecAlpha -DscalarMachine -DoptSolvers
-I/usr/users/henry/c++/foam1.7/src/foam/include -Iinclude -I.    -c $SOURCE
-o Make/decAlpha/patchFieldFields.o
cxx: Error:
/usr/users/henry/c++/foam1.7/src/foam/include/FieldMemberOperators.C, line 23:
In this statement, the argument list "((f1)[i])+((f2)[i])" matches no "__pl".
    FOR_ALL_F_OP_F_OP_F(Type, *this, =, Type, f1, +, Type, f2,
----^

The class it is complaining about is tensorField which is properly
declared and does have a __pl operator.  This same piece of code 
compiles fine for vectorField.  The only difference is that vector
is Vector<double> and tensor is a Vector<Vector<double > >, so the
DEC compiler seems to be getting confused by the use of templates.
T.RTitleUserPersonal
Name
DateLines
3487.1Can we see the source code?DECC::SULLIVANJeff SullivanWed Mar 12 1997 15:3610
Can you post either a short code example that demonstrates the problem or a
pointer to the source on the net? I'm not sure there is enough to go on given
the base note info.

If there are user-defined #include files, you can preprocess the user's code
using -P and then reference the .i file produced.

Thanks,
-Jeff

3487.2Trying to get source code.KERNEL::PULLEYCome! while living waters flowFri Apr 11 1997 10:214
    Sory folks,
    
    I'm still trying to get some source for this.