[aspectc-user] aspectc with VC 7.0

Laurent.Uhres at ses-astra.com Laurent.Uhres at ses-astra.com
Mon Dec 15 14:50:21 CET 2003


Hi there

I have been trying to use ac++ with VC 7.0.  I keep on getting the 
following error when compiling:

C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/include/stdio.h:77: 
error: `signed' or `unsigned' invalid for given type

My project contains the files:
- main.cpp: instantiation of a test class CClass
- class.h: simple class declaration CClass
- class,cpp:  simple definition of ctor and dtor of CClass
- test.ah: contains the following code

#include <iostream>

aspect ATest
{
        pointcut Logger() = execution("% CClass::%(...)")
        advice Logger() : before() { cout << "before"; }
};

My makefile looks like this:

INCLUDE="C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include"

main.exe: main.obj class.obj
        link main.obj class.obj
 
main.obj: main.cxx
        cl /c main.cxx
 
class.obj: class.cxx
        cl /c class.cxx
 
main.cxx: main.cpp class.h test.ah
        ac++ -c main.cpp -o main.cxx -p. -I$(INCLUDE) -D_WIN32 
-D__cplusplus
 
class.cxx: class.cpp class.h test.ah
        ac++ -c class.cpp -o class.cxx -p. -I$(INCLUDE) -D_WIN32 -D__cplusplus


Any ideas of what I am doing wrong? I guess I am missing a preprocessor 
macro...


Laurent UHRES
Systems Analyst
 
SES Multimedia
L-6815 Chateau de Betzdorf 

Tel:  + 352 710 725 799
Fax: + 352 710 725 482
http://www.ses-global.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20031215/087fb91f/attachment.html>


More information about the aspectc-user mailing list