This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Class compilation


Hello There!

Can U help me?

I'm using Falch.Net Developer Studio with the Gnu PRC-Tools.

As a little example, I wrote a simple program (just 1 form) and 1 class.

BUT...

during compilation, the make shows the following message:

Compiling Src\Class1.cpp...
./Src/Class1.cpp:7: return type specification for constructor invalid
make.exe": *** [Debug/Class1.o] Error 1


I think my code is ok, but it follows, anyway.


FILE: CLASS1.H
#include <Pilot.h>

#ifndef _TDADOS_H_
#define _TDADOS_H_

class TDados
{
//   protected:

   private:
      CharPtr mDados;

   public:
      TDados();
       ~TDados();
       void    Dados(CharPtr);
}

#endif //_TDADOS_H_

---------------
FILE: CLASS1.CPP
#include "Class1.h"

TDados::TDados()
{
}

TDados::~TDados()
{
}

void TDados::Dados(CharPtr NewDados)
{
   int a;

   a = 0;
}


What's going wrong?


Thanks in advance,


LZ


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]