Newsgroup: it.comp.lang.c++
Titolo: errore incomprensibile

Ciao a tutti,
ho fatto una classe BPnet, ma nel momento in cui la vado a includere, mi 
escono questi errori... (quelli sottostanti al messaggio)
Voi che sicuramente avete più esperienza di me, sapete aiutarmi e 
indicarmi il tipo di errore?
Grazie infinite.
Cecilia
--------------------Configuration: TTEI_Video - Win32 
Debug--------------------
Linking...
xilink6: executing 'C:\PROGRA~1\MICROS~2\VC98\Bin\link.exe'
ImageWindow.obj : error LNK2005: "double __cdecl 
imglibcpp::actfunction(double)" (?actfunction@imglibcpp@@YANN@Z) already 
defined in application.obj
ImageWindow.obj : error LNK2005: "double __cdecl 
imglibcpp::derivate_actfunction(double)" 
(?derivate_actfunction@imglibcpp@@YANN@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: __thiscall 
imglibcpp::BPnet::BPnet(int *,struct imglibcpp::example *,double,double)" 
(??0BPnet@imglibcpp@@QAE@PAHPAUexample@1@NN@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: __thiscall 
imglibcpp::BPnet::~BPnet(void)" (??1BPnet@imglibcpp@@QAE@XZ) already 
defined in application.obj
ImageWindow.obj : error LNK2005: "public: double * __thiscall 
imglibcpp::BPnet::value(unsigned char *)" 
(?value@BPnet@imglibcpp@@QAEPANPAE@Z) already defined in application.obj
ImageWindow.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::controlla(struct imglibcpp::example *,int,double)" 
(?controlla@BPnet@imglibcpp@@QAENPAUexample@2@HN@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::init_weights(void)" 
(?init_weights@BPnet@imglibcpp@@QAEXXZ) already defined in application.obj
ImageWindow.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::get_error(struct imglibcpp::example *)" 
(?get_error@BPnet@imglibcpp@@QAENPAUexample@2@@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::get_error(int)" (?get_error@BPnet@imglibcpp@@QAENH@Z) 
already defined in application.obj
ImageWindow.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::learn_error(double,int,int,int)" 
(?learn_error@BPnet@imglibcpp@@QAENNHHH@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::learn(struct imglibcpp::example *)" 
(?learn@BPnet@imglibcpp@@QAEXPAUexample@2@@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: int __thiscall 
imglibcpp::BPnet::Salva(int)" (?Salva@BPnet@imglibcpp@@QAEHH@Z) already 
defined in application.obj
ImageWindow.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::init_weightsfile(double * * *)" 
(?init_weightsfile@BPnet@imglibcpp@@QAEXPAPAPAN@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::Modifica_rate(double)" 
(?Modifica_rate@BPnet@imglibcpp@@QAEXN@Z) already defined in 
application.obj
ImageWindow.obj : error LNK2005: "public: class imglibcpp::BPnet * 
__thiscall imglibcpp::BPnet::Rete_Neurale_FaceCarica(void)" 
(?Rete_Neurale_FaceCarica@BPnet@imglibcpp@@QAEPAV12@XZ) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "double __cdecl 
imglibcpp::actfunction(double)" (?actfunction@imglibcpp@@YANN@Z) already 
defined in application.obj
imglib_FilePGM.obj : error LNK2005: "double __cdecl 
imglibcpp::derivate_actfunction(double)" 
(?derivate_actfunction@imglibcpp@@YANN@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: __thiscall 
imglibcpp::BPnet::BPnet(int *,struct imglibcpp::example *,double,double)" 
(??0BPnet@imglibcpp@@QAE@PAHPAUexample@1@NN@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: __thiscall 
imglibcpp::BPnet::~BPnet(void)" (??1BPnet@imglibcpp@@QAE@XZ) already 
defined in application.obj
imglib_FilePGM.obj : error LNK2005: "public: double * __thiscall 
imglibcpp::BPnet::value(unsigned char *)" 
(?value@BPnet@imglibcpp@@QAEPANPAE@Z) already defined in application.obj
imglib_FilePGM.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::controlla(struct imglibcpp::example *,int,double)" 
(?controlla@BPnet@imglibcpp@@QAENPAUexample@2@HN@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::init_weights(void)" 
(?init_weights@BPnet@imglibcpp@@QAEXXZ) already defined in application.obj
imglib_FilePGM.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::get_error(struct imglibcpp::example *)" 
(?get_error@BPnet@imglibcpp@@QAENPAUexample@2@@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::get_error(int)" (?get_error@BPnet@imglibcpp@@QAENH@Z) 
already defined in application.obj
imglib_FilePGM.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::learn_error(double,int,int,int)" 
(?learn_error@BPnet@imglibcpp@@QAENNHHH@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::learn(struct imglibcpp::example *)" 
(?learn@BPnet@imglibcpp@@QAEXPAUexample@2@@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: int __thiscall 
imglibcpp::BPnet::Salva(int)" (?Salva@BPnet@imglibcpp@@QAEHH@Z) already 
defined in application.obj
imglib_FilePGM.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::init_weightsfile(double * * *)" 
(?init_weightsfile@BPnet@imglibcpp@@QAEXPAPAPAN@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::Modifica_rate(double)" 
(?Modifica_rate@BPnet@imglibcpp@@QAEXN@Z) already defined in 
application.obj
imglib_FilePGM.obj : error LNK2005: "public: class imglibcpp::BPnet * 
__thiscall imglibcpp::BPnet::Rete_Neurale_FaceCarica(void)" 
(?Rete_Neurale_FaceCarica@BPnet@imglibcpp@@QAEPAV12@XZ) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "double __cdecl 
imglibcpp::actfunction(double)" (?actfunction@imglibcpp@@YANN@Z) already 
defined in application.obj
imglib_ImageRGB.obj : error LNK2005: "double __cdecl 
imglibcpp::derivate_actfunction(double)" 
(?derivate_actfunction@imglibcpp@@YANN@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: __thiscall 
imglibcpp::BPnet::BPnet(int *,struct imglibcpp::example *,double,double)" 
(??0BPnet@imglibcpp@@QAE@PAHPAUexample@1@NN@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: __thiscall 
imglibcpp::BPnet::~BPnet(void)" (??1BPnet@imglibcpp@@QAE@XZ) already 
defined in application.obj
imglib_ImageRGB.obj : error LNK2005: "public: double * __thiscall 
imglibcpp::BPnet::value(unsigned char *)" 
(?value@BPnet@imglibcpp@@QAEPANPAE@Z) already defined in application.obj
imglib_ImageRGB.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::controlla(struct imglibcpp::example *,int,double)" 
(?controlla@BPnet@imglibcpp@@QAENPAUexample@2@HN@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::init_weights(void)" 
(?init_weights@BPnet@imglibcpp@@QAEXXZ) already defined in application.obj
imglib_ImageRGB.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::get_error(struct imglibcpp::example *)" 
(?get_error@BPnet@imglibcpp@@QAENPAUexample@2@@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::get_error(int)" (?get_error@BPnet@imglibcpp@@QAENH@Z) 
already defined in application.obj
imglib_ImageRGB.obj : error LNK2005: "public: double __thiscall 
imglibcpp::BPnet::learn_error(double,int,int,int)" 
(?learn_error@BPnet@imglibcpp@@QAENNHHH@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::learn(struct imglibcpp::example *)" 
(?learn@BPnet@imglibcpp@@QAEXPAUexample@2@@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: int __thiscall 
imglibcpp::BPnet::Salva(int)" (?Salva@BPnet@imglibcpp@@QAEHH@Z) already 
defined in application.obj
imglib_ImageRGB.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::init_weightsfile(double * * *)" 
(?init_weightsfile@BPnet@imglibcpp@@QAEXPAPAPAN@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: void __thiscall 
imglibcpp::BPnet::Modifica_rate(double)" 
(?Modifica_rate@BPnet@imglibcpp@@QAEXN@Z) already defined in 
application.obj
imglib_ImageRGB.obj : error LNK2005: "public: class imglibcpp::BPnet * 
__thiscall imglibcpp::BPnet::Rete_Neurale_FaceCarica(void)" 
(?Rete_Neurale_FaceCarica@BPnet@imglibcpp@@QAEPAV12@XZ) already defined in 
application.obj
Debug/TTEI_Video.exe : fatal error LNK1169: one or more multiply defined 
symbols found
Error executing xilink6.exe.
TTEI_Video.exe - 46 error(s), 0 warning(s)
-- 
Creato con M2, il rivoluzionario client e-mail di Opera: 
http://www.opera.com/m2/

 indicarmi il tipo di errore?
probabilmente hai definito le funzioni membro di questa classe nel file 
.h e poi non hai messo le guardie d'inclusione.
Prova a mettere:
#ifndef PBNET_H
#define PBNET_H
class PBNet
{
...
};
#endif	
-- 
Nuoto e me ne frego!