[ace-users] ACE_Main::run_i issue
Steve Huston
shuston at riverace.com
Wed Apr 29 11:42:25 CDT 2015
It sounds like the ACE header is being included within the ImageFramework class – do it outside of that class.
From: James Franco [mailto:mjfranc808 at gmail.com]
Sent: Wednesday, April 29, 2015 12:40 PM
To: Steve Huston
Cc: ace-users at list.isis.vanderbilt.edu
Subject: Re: [ace-users] ACE_Main::run_i issue
Thank you for the reply. I am not sure what you mean by defining ACE_Main namespace or class
I think the header gets included from somewhere and the function is inlined. Are there any preprocessor defines I could use to circumvent this issue ?
Also are you suggesting I could remove the ACE_Main part ? This is where the error points to.
# define main \
ace_main_i (int, char *[]); \
ACE_BEGIN_VERSIONED_NAMESPACE_DECL \
ACE_Export int ace_os_main_i (ACE_Main_Base&, int, char *[]); \
class ACE_Main : public ACE_Main_Base {int run_i (int, char *[]);}; \
inline int ACE_Main::run_i (int argc, char *argv[]) \
{ \
return ace_main_i (argc, argv); \
} \
ACE_END_VERSIONED_NAMESPACE_DECL \
int \
ACE_MAIN (int argc, char *argv[]) /* user's entry point, e.g., wmain */ \
{ \
ACE_Main m; \
return m.run (argc, argv); /*ace_os_main_i (m, argc, argv); what the user calls "main" */ \
} \
int \
ace_main_i
# endif /* ACE_WIN32 && ACE_USES_WCHAR */
# else /* ACE_HAS_WINCE */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
On Wed, Apr 29, 2015 at 9:32 AM, Steve Huston <shuston at riverace.com<mailto:shuston at riverace.com>> wrote:
Did you try to define it without defining ACE_Main namespace or class? It sounds like you’re trying to nest the class or namespace and the compiler doesn’t like it, so moving it out, or removing the ACE_Main:: part may work. It’s hard to answer better without seeing the code.
-Steve
From: ace-users [mailto:ace-users-bounces at list.isis.vanderbilt.edu<mailto:ace-users-bounces at list.isis.vanderbilt.edu>] On Behalf Of James Franco
Sent: Wednesday, April 29, 2015 12:29 PM
To: ace-users at list.isis.vanderbilt.edu<mailto:ace-users at list.isis.vanderbilt.edu>
Subject: [ace-users] ACE_Main::run_i issue
I am trying to port a code base from Visual Studio to Mingw GCC.
While attempting to build a component I get the following error
error: cannot define member function 'ImageFramework::ACE_Main::run_i' within 'ImageFramework'
inline int ACE_Main::run_i (int argc, char *argv[]) \
Any suggestions on why this is happening and how i can resolve it ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/cgi-bin/mailman/private/ace-users/attachments/20150429/070d9374/attachment-0001.html>
More information about the ace-users
mailing list