Help: no match for call to - error

From: Kevin (kevine_at_digimindz.com)
Date: 08/31/04


Date: 30 Aug 2004 16:19:14 -0700

Hello,

I am trying to port a program over from Visual Studio to Linux and
compiling on g++. There is nothing in my code that is compiler/os
specific.

See comments below to point out what lines the error occurs on; well
at least where the compiler is complaining about it.

///////////////////////////////////main.cpp

#include <iostream>
#include "GIFManip.h"

using namespace std;

main()
{
        gimage input = gimage("test.gif"); /* Error Occurs Here */
        
        input.invert();
        input.modAllPixels();
        input.WriteFile("output.gif");

        gimage copy = gimage("output.gif"); /* Error Occurs Here */

        if(copy == input)
        {
                // Do Nothing
        }
        else
        {
                input.countDif(copy);
        }
        input.greyScale();
        input.WriteFile("GreyOutput.gif");
        return 0;
}

///////////////////////////////////GIFManip.h

#ifndef GIFManip_H
#define GIFManip_H
#include "ImageLib.h"

using namespace std;

class gimage
{

public:

//Constructor
        gimage(int = 0, int = 0);

//Constructor
        gimage(string);

//Copy Constructor
        gimage(gimage &);

//Destructor
        ~gimage();
//Cut Rest of file out

#endif

I appreciate the help, let me know if I should post the complete
GIFManip.h and I can also post the ImageLib.h which I am wrapping
around if needed.

Thank you in advance.

Kevin



Relevant Pages