#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    5
    Rep Power
    0

    iostream error in Kylix3 console app


    I finally installed Kylix3 in redhat, following
    http://www.linuxquestions.org/questi...003/08/3/42518
    this thread ( compat-glib and few other changes). I can compile and run a dialog without crashing. However as a console project following code error out

    #include <iostream>
    #pragma hdrstop

    //---------------------------------------------------------------------------

    #pragma argsused

    using namespace std;

    int main(int argc, char* argv[])

    {
    cout<<"This will error out";

    //**************************
    //std::cout<<"Same error";::

    return 0;
    }

    this error happens once I put
    #include <iostream> or
    #include <iostream.h>

    and compile.

    Error is in _algobase.h

    Error message
    [C++ Error] _algobase.h(629): E2285 Could not find a match for 'min<_Tp,_Compare>(const unsigned int,const unsigned int)'
    [C++ Error] _algobase.h(660): E2285 Could not find a match for 'min<_Tp,_Compare>(const int,const int)'

    if I change the order of the /usr/i386-glibc21-linux/include from the top to bottom in project option I get a huge error message which I am attaching here as an attachment.
    Any Idea anyone?
    Thanks in advance.
    Attached Files
    Last edited by planck2; December 19th, 2003 at 01:05 AM.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    4
    Rep Power
    0
    I also have this exact problem in algobase.h .

    I am using RH7.3 with Kylix3 and the update.

    Has anyone found a workaround or what the problem is?

    Cheers,
    Ash
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,625
    Rep Power
    4247
    Can you use gcc/g++ for console projects instead?
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    4
    Rep Power
    0
    yep gcc compilers fine. I wanted to use kylix for its step-through debugging facilities though.

    This post at linuxquestions.org is very useful ....

    Kylix Forum thread

IMN logo majestic logo threadwatch logo seochat tools logo