[aspectc-user] invalid declaration near token `dllexport'

Matthias Urban matthias.urban at pure-systems.com
Thu Aug 26 10:39:01 CEST 2004


Hi,


Ext-Bil.Lewis at nokia.com wrote:
> Dear...
> 
> I'm getting an error on running AC++ (0.9pre1). I'm sure I've seen this before and
> I figured out what to do. Somehow. And now I have no idea of what I did.
> 
> 
>>From this compile line (which came from a working batch file):
> 
> \ac\ac++ -e cpp -p ViewManager-ORIG -d ViewManager -IViewManager-ORIG\src -IViewManager-ORIG\inc -v9  -DNDEBUG -D_UNICODE -D__SYMBIAN32__ -D__GCC32__ -D__EPOC32__ -D__MARM__ -D__AVKON_ELAF__ -D__MARM_ARM4__ -D__DLL__  -IViewManager-ORIG\GROUP  -I \Symbian\6.1\Series60\EPOC32\INCLUDE --no_problem_spec_scope -r ViewManager\JoinPoints.xml 
> 
> 
> I get this error msg:
> 
> ViewManager-ORIG/src/ViewManagerApplication.cpp:43: error: invalid declaration near token `dllexport'
> 
> 
> 
> which refers to a line in a file which macro-expands out to this:
> 
> __attribute__(( dllexport ))   CApaApplication* NewApplication()
> 	{
> 	return new CTitlePaneApplication;
> 	}
> 
>  
> 
> Look familiar to anyone?
> 
> -Bil
> 
> (Compiling for Symbian on a Windows 2000 PC.)


__attribute__ is a GNU extension that can only be handled correctly by 
ac++ with enabled GNU extension support. Please rerun ac++ using the 
--gnu command line option.


Matthias

-- 
Matthias Urban                          Phone: +49-391-544569-32
pure-systems GmbH                       Fax:   +49-391-544569-90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3136 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20040826/a0f334f1/attachment.bin>


More information about the aspectc-user mailing list