This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Class compilation
- To: gcc at gcc dot gnu dot org
- Subject: Class compilation
- From: "Leonardo Zacche.ctz" <zacche dot ctz at anp dot gov dot br>
- Date: Wed, 1 Nov 2000 18:08:10 -0300
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