×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jan 2005
    Posts
    154

    Problem with using references/pointers/default constructor on carbide.c++

    Dear Exeprts,

    I developed a set of class on visual studio 6.0 for Symbian applications for future use. I then tried porting the classes to Carbide env and all was okk. that was 3 months ago. recently i got myself a new laptop and installed the recent version of carbide, 1.3, and i started having very weird error messages. suppose we have the following scenario:

    // Definition
    class A:
    {
    A();
    ~A();
    // Some functions and some member vars
    };
    //Declaration
    A::A() {}
    ....


    // Definition
    class B
    {
    B();
    ~B();
    FailingFunc(A &);
    CallFailingFunc();
    // Some member data
    }
    // Declaration
    B::B()
    {
    }
    B::~B()
    {
    }
    B::FailingFunc(A &aa)
    {
    // Some code
    }
    B::CallFailingFunc()
    {
    FailingFunc(A()); // ERROR HERE
    }


    when i compile such code i get an error message that says something like this:
    "Can not convert from FailingFunc(A) to FailingFunc(A &)"

    there is a problem with the refence when calling the default constructor as the parameter to FailingFunc()

    As i ssaid this code was running without any error on VS and on carbide on my prev machine. I am sure that i used there 1.3 as well, but i dont know if there is a build number and if they are the same.

    Can any body suggest a solution? Is there any king of settings for the compiler on carbide??

    cheers
    Abolfoooud

  2. #2
    Regular Contributor
    Join Date
    Jan 2005
    Posts
    154

    Re: Problem with using references/pointers/default constructor on carbide.c++


Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  3. WAP service problem on Apache
    By bigg_o in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2005-04-17, 16:05
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×