problem when compiling
| Mon, 2008-02-04 14:32 | |
|
Hi, This code give this error: why??
#ifdef __SERIES60_30__
// ---------------------------------------------------------
// E32Main()
// Entry point function for EPOC Application
// Returns: EikStart::RunApplication: NewApplication
// ---------------------------------------------------------
//
GLDEF_C TInt E32Main()
{
return EikStart::RunApplication( NewApplication );
}
LOCAL_C CApaApplication* NewApplication()
{
return (new CApplication);
}
#else
// ---------------------------------------------------------------------------
// NewApplication() (2nd Edition)
//
// Constructs CIAPConnectApp
// Returns: created application object
// ---------------------------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication()
{
return new CApplication;
}
// -----------------------------------------------------------------------------
// Entry point function for Symbian Apps (2nd Edition )
// -----------------------------------------------------------------------------
GLDEF_C TInt E32Dll( TDllReason )
{
return KErrNone;
}
// End of File
#endif
I follow manual to porting application but this not compiled
Best regard Silvia |
|






Forum posts: 588
Try using #ifndef EKA2 instead.
Forum posts: 151
Thanks, but there is same problem

If i write this code work, but if i complide whit 2nd not compiled
#ifdef __SERIES60_30__ // --------------------------------------------------------- // E32Main() // Entry point function for EPOC Application // Returns: EikStart::RunApplication: NewApplication // --------------------------------------------------------- // GLDEF_C TInt E32Main() { return EikStart::RunApplication( NewApplication ); } LOCAL_C CApaApplication* NewApplication() { return (new CApplication); } #endif #ifdef __SERIES60_20__ // --------------------------------------------------------------------------- // NewApplication() (2nd Edition) // // Constructs CIAPConnectApp // Returns: created application object // --------------------------------------------------------------------------- // EXPORT_C CApaApplication* NewApplication() { return new CApplication; } // ----------------------------------------------------------------------------- // Entry point function for Symbian Apps (2nd Edition ) // ----------------------------------------------------------------------------- GLDEF_C TInt E32Dll( TDllReason ) { return KErrNone; } // End of File #endifbest regard
Silvia
Forum posts: 588
Well, #ifndef EKA2 works for me. Have you noticed that it is ifndef, not ifdef? EKA2 is defined in v9 builds (also in UIQ), and not in pre v9.
Forum posts: 151
Hyi,
I see that my application compiled if i use
#ifdef __SERIES60_3X__
What difference there are with
#ifdef __SERIES60_30__
Thanks
Silvia
Forum posts: 1142
You should use #ifdef EKA2 if you want to do it "correctly", since this is what decides which code you need.
(EKA2 means the new kernel, and that is what decides what "startup" code you need, and not really the S60 sdk version, even though all above 3.0 also is EKA2)
But I guess it doesn't matter if you only want it to compile under S60 SDKs...
Isn't the difference between __SERIES60_3X__ and __SERIES60_30__ pretty obvious? (assuming it is used as the name suggests)
30 should mean 3.0, and only 3.0, and 3X should mean also 3.1 and 3.2 (FP1 and FP2)
Forum posts: 151
So, I know now.
Many thanks for all
Silvia