[aspectc-user] __declspec issues

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

Hi John,

I simply forgot to set the aspectc-user list on the reply, my fault.

> That works great - but now I can't get it to work again :-(
> I'm running this command ->
> ac++
> -c
> c:\DOCUME~1\administrator\mydocu~1\projects\cwss\code\build\ws-axis\c\src\soap\Attribute.cpp
> -o
> c:\DOCUME~1\administrator\mydocu~1\projects\cwss\code\build\ws-axis\c\src\soap\Attribute.cppout
> -p.
> -a c:\tmp\TestTrace.ah
> -Ic:\DOCUME~1\administrator\mydocu~1\projects\cwss\code\build\ws-axis\c\src\..\include
> -D_WIN32
> -DWIN32
> -D__cplusplus
> -D_M_IX86
> -D__STDC__
> --vc
> -V1
> --problem
> -Ic:\progra~1\micros~2\vc98\include
> -Amachine(i386)
> -Aplattform(win32)
> And ths is the output I see on the console ->
> ------------------------------------------------------------------------------------------------------------------------
> ac++ 0.9pre1 (Jul  7 2004)
> C:\Documents and Settings\Administrator\My
> Documents\projects\CWSS\code\Build>rem -D_MSC_VER=1300
> ------------------------------------------------------------------------------------------------------------------------
> I don't see my output file being created :-(

The ac++ command line options are case sensitive, so you have to use 
"-v1" instead of "-V1". "-V" let ac++ print its version and then exit.

> And could I also ask - if I'm building a shared library with "aspected"
> code in -  how is a user of the code affected? Do they have to call my
> objects with different signatures now? Do they have to run this pre-compile
> step too?

This directly depends on the aspects you apply and how and what you 
weave. Users of shared libraries depend on the public headers of the 
library so that only changes in the headers affect the use of the woven 
library. If you are introducing new methods in classes the interface of 
these classes change. But signatures of functions and methods are never 
changed. The only thing you don't have to forget is to weave the library 
headers using ac++'s "-i" command line option.


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/d71e350f/attachment.bin>

More information about the aspectc-user mailing list