Bonjour, j'ai un problème de déclaration de classe.


Code C++ : 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
22
23
#ifndef OTAWA_CPP_UNMANGLER_H
#define OTAWA_CPP_UNMANGLER_H
 
#include <elm/string.h>
 
namespace otawa { namespace cpp {
 
using namespace elm;
 
class UnmanglingException: public MessageException {
public:
	UnmanglingException(string message): MessageException(message) { }
};
 
class Unmangler {
public:
	static Unmangler& base;
	virtual string unmangle(const string& name) throw(UnmanglingException) = 0;
};
 
} } // otawa::cpp
 
#endif	// OTAWA_CPP_UNMANGLER_H

Et j'ai ça à la compilation
Alors que hier ça a compilé sans soucis, avant que j'ai l'horrible idée de faire un make clean.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
[ 82%] Building CXX object src/ocpp/CMakeFiles/ocpp.dir/Unmangler.cpp.obj
In file included from D:\Lecourt\workspace\otawa\src\ocpp\Unmangler.cpp:25:0:
D:\Lecourt\workspace\otawa\src\..\include/otawa/cpp/Unmangler.h:31:52: error: expected class-name before '{' token
D:\Lecourt\workspace\otawa\src\..\include/otawa/cpp/Unmangler.h: In constructor 'otawa::cpp::UnmanglingException::UnmanglingException(elm::string)':
D:\Lecourt\workspace\otawa\src\..\include/otawa/cpp/Unmangler.h:33:39: error: class 'otawa::cpp::UnmanglingException' does not have any field named 'MessageException'
mingw32-make[2]: *** [src/ocpp/CMakeFiles/ocpp.dir/Unmangler.cpp.obj] Error 1
mingw32-make[1]: *** [src/ocpp/CMakeFiles/ocpp.dir/all] Error 2
mingw32-make: *** [all] Error 2