Bonjour,
J'essaie de compiler du code qui ne fait appel en externe qu'à std::vector et la librairie mathématique standart, et le compilateur me répond par:
[C++ Error] mstv.h(53): E2303 Type name expected
[C++ Error] mstv.h(53): E2139 Declaration missing ;
[C++ Error] mstv.h(54): E2303 Type name expected
[C++ Error] mstv.h(54): E2238 Multiple declaration for 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(53): E2344 Earlier declaration of 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(54): E2139 Declaration missing ;
[C++ Error] mstv.h(55): E2303 Type name expected
[C++ Error] mstv.h(55): E2238 Multiple declaration for 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(54): E2344 Earlier declaration of 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(55): E2139 Declaration missing ;
[C++ Error] mstv.h(56): E2303 Type name expected
[C++ Error] mstv.h(56): E2238 Multiple declaration for 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(55): E2344 Earlier declaration of 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(56): E2139 Declaration missing ;
[C++ Error] mstv.h(57): E2303 Type name expected
[C++ Error] mstv.h(57): E2238 Multiple declaration for 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(56): E2344 Earlier declaration of 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(57): E2139 Declaration missing ;
[C++ Error] mstv.h(58): E2303 Type name expected
[C++ Error] mstv.h(58): E2238 Multiple declaration for 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(57): E2344 Earlier declaration of 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(58): E2139 Declaration missing ;
[C++ Error] mstv.h(59): E2303 Type name expected
[C++ Error] mstv.h(59): E2238 Multiple declaration for 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(58): E2344 Earlier declaration of 'tagCHANNEL_INFO::LONG'
[C++ Error] mstv.h(58): E2228 Too many error or warning messages
et le code du truc : (mstv.h est un fichier de Borland)
Au debut, je pensais que c'etait une erreur de type (j'ai donc mis un #define LONG long) mais l'erreur a ete la meme,, mais au niveau de DATE, avec aussi de multiples definitions de tagCHANNEL_INFO:ATE. Sachant en plus qu'il s'agit d'un fichier de Borland (c:\program files\borland\cbuilder6\include\mstv.h), donc qu'il se doit s'etre sans erreur, je ne vois pas trop comment y remédier.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 typedef struct tagCHANNEL_INFO { LONG lChannelID; LONG lTuningSpace; LONG lChannelNumber; LONG lNetworkID; LONG lRatingID; LONG lDisplayMask; LONG lPaymentAddress; LONG lPaymentToken; LONG lLength; DATE StartTime; DATE EndTime; DATE LastUpdate; TCHAR szCallLetters[MAX_CALLLETTERS]; TCHAR szDescription[MAX_DESCRIPTION]; TCHAR szNetworkName[MAX_CALLLETTERS]; TCHAR szNetworkLogoMoniker[MAX_LOGOMONIKER]; BOOL fTunable; } CHANNEL_INFO;
Partager