[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: KNumber-Library (Ultra)
From:       Tomas Mecir <mecirt () gmail ! com>
Date:       2005-08-23 6:44:54
Message-ID: 492258b10508222344a5c64c9 () mail ! gmail ! com
[Download RAW message or body]

On 8/22/05, Dave Feustel <dfeustel@verizon.net> wrote:
> Actually g++. I have got the errors down to the following
> (some kind of problem with contructor definitions), which
> I still don't understand. Hints are welcome! :-}
> Note the original code compiles and runs under MS Visual studio.
> Use of g++ is what forces the code cleanup.
> ===================================
> /home/daf/Ultra/Ultracpp}g++ -c ultdefs.cpp
> ultdefs.cpp: In constructor `UINT::UINT(std::basic_string<char,
>    std::char_traits<char>, std::allocator<char> >)':
> ultdefs.cpp:942: error: conversion from `U10INT' to non-scalar type `UINT'
>    requested
> ultdefs.cpp: At global scope:
> ultdefs.cpp:953: error: prototype for `UINT::UINT(U10INT)' does not match any
>    in class `UINT'

I'd say, add a constructor for UINT with the U10INT parameter, which
then does what's needed (noit sure what it is, as I don't know the
classes). mscv seems to be less strict in these things, and it seems
to have managed to convert it to something else - hence you should be
able to easily do the same conversion in the constructor (assuming
that the conversion was correct, that is).

/ Tomas
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic