Class compilation
Leonardo Zacche.ctz
zacche.ctz@anp.gov.br
Wed Nov 1 12:02:00 GMT 2000
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
More information about the Gcc
mailing list