Right now I have a problem with the compilation process with EDGEIde. The same code that can be compiled with Visual Studio 2003 (and working) doesn't compile with EdgeIDE. So I just can't get to produce the .sis file I need to install it on a 6680 mobile.
Here are the errors generated :
- Code: Select all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17---------------- Building: TestGame - Series 60 (1st edition) Release ----------------
TestGame.cpp
TestGame.cpp: In function `class CEikAppUi * EdgeMain(struct EDGEDATA *)':
TestGame.cpp:45: `ClassMain' undeclared (first use this function)
TestGame.cpp:45: (Each undeclared identifier is reported only once
TestGame.cpp:45: for each function it apprs in.)
TestGame.cpp:45: `main' undeclared (first use this function)
TestGame.cpp:45: parse error before `('
TestGame.cpp:46: confused by earlier errors, bailing out17 lines; 4 keywds; 8 nums; 71 ops; 0 strs; 0 coms Syntactic Coloring v0.4 - Dan East
It seems that the compilation applciation doesn't find the definitions for the ClassMain class although the include is present. I just don't understand. I've also tried to add the path to the file "ClassMain.h" in the .epj file parameters, also tried to add all th e.h in the tree architecture of the .epj project, no changes ...
Here are the extracts of the code.
TestGame.cpp
- Code: Select all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45#define ESOUND_HEKKUS
//Include Edge
#include "edgemain.h"
//Link the Edge static library
#pragma comment(lib, "edge.lib")
//Platform dependent definitions
#include "../PC/def_platf.h"
#if defined(DEVICE_WIN32)
//Include internal resources for native Win32 builds
#include "resource.h"
#include "ClassMain.h"
#endif
/////////////////////////////////////////////////////////////////////
// The program entry point //
/////////////////////////////////////////////////////////////////////
MAINRET EdgeMain(EDGEDATA *data)
{
/* #if defined(DEVICE_WIN32)
data->appicon = IDI_MAIN;
#endif */
ClassEStd::StrCpy(data->caption, "Toto");
ClassMain *main = new ClassMain(data);
return(main->Start());
}45 lines; 13 keywds; 0 nums; 30 ops; 6 strs; 8 coms Syntactic Coloring v0.4 - Dan East
...
