[aspectc-user] Compiling helloworld aspect C++ on Symbian

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Mon Sep 5 12:42:52 CEST 2005


Marti Bayo-alemany wrote:
> Hi all,
> I have tried to use the STU mode but it is actually not working.
> The command is the following ...
> ..\..\ac\ac++  -g -p source  -c source\helloworld_application.cpp  -o 
> helloworld-out\helloworld_application.cpp -e cpp --skip-bodies-non-prj 
> --no_problem_spec_scope --gnu-2.95 -d ..\helloworld-out -I.  -D_DEBUG 
> -D_UNICODE -D__SYMBIAN32__ -D__GCC32__ -D__EPOC32__ -D__MARM__ 
> -D__MARM_ARMI__ -D__DLL__ -I"C:\Symbian\7.0s\Series60_v20\Epoc32\include\"
> With the WPT mode the compiler is trying to include the aspect.ah from 
> source. Due aspect.ah is not a c++ files there is compilation problems.
> I have tested on the following two paths structures
> symbian|
>            |->helloworld(*)|---->source
>                                     |---->helloworld-out
> ... and ...
> symbian|
>            |->helloworld(*)|---->source
>            |
>            |->helloworld-out

the second directory structure is better! You shouldn't have the output 
directory in the source directory.

Regarding the inclusion of the aspect header in the generated code, it 
might help to add a -I<directory> for every directory that contains an 
aspect header on the command line. In your case this means that you have 
to add -Isource.

(explanation follows later)

Does that help?


More information about the aspectc-user mailing list