[aspectc-user] __declspec issues

Matthias Urban matthias.urban at pure-systems.com
Wed Aug 18 15:43:02 CEST 2004


Hi,


John Hawkins wrote:
> 
> 
> 
> Hi,
> 
> 
> I'm trying to make ac++ trace sample work against a "simple" class.
> However, the class has the following code snippet in one of its included
> headers ->
> 
> "STORAGE_CLASS_INFO int initialize_module(int bServer);"
> 
> where STORAGE_CLASS_INFO is a macro for "__declspec(dllexport)" (a windows
> specific api.)
> 
> I'm getting the error -> error: invalid declaration near token `int'
> 
> Why? I can only assume there is something wrong with ac++ handling of
> __declspec(dllexport)- but what?
> It's not an issue with the macro substitution because I have hardcoded it
> and still get the same error but i left it in for completeness incase
> someone knows otherwise.
> 
> Compiler is MS VC6.0 (Yes, I know there are supposed to be issues but I
> only want to use it for trace at the moment so thought I could get away
> with it !)
> 
> fyi: I'm trying to enable tracing in Axis C++ using AspectC++.
> 
> 
> Anyone got any clues as to what's wrong?
> 

it seems that the MSVC++ extensions are not enabled. Please try again 
using the "--vc" 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/20040818/0ee67d34/attachment.bin>


More information about the aspectc-user mailing list