[aspectc-user] Weaving Error

Mehmet S mehmetsarigil at yahoo.com
Sun Aug 5 06:31:44 CEST 2007


Hi
I am evaluating  aspectC++ add-in from pure-systems.com (this add-in can be installed on Visual Stduio 2005)
I opened an existing project (this project was created with AppWizard tool of Visual Studio) , add an aspect.ah file into the project the content of the aspect.ah is as follows;

#include<stdio.h>

aspect hello{
   
};



after rebuilding all, the Visual C (Visual Studio 2005) failed and give lots of error messages,
I also included stdafx.h in all the header files of the project..nothing changed.

(Meanwhile I experimented and saw that If source is generated by AppWizard the mentioned errors arise, if you create an empty project and write all the codes by hand and add the aspect then  no problem occurs. The problem is with the AppWizard generated code. I searched the pure-systems documents, they advices to add #include "stdafx.h" comment in every header file generated by AppWizard, I tried but nothing changed.)

If you could help me I would be very grateful...



Thanks in advance..,,

------ Rebuild All started: Project: bC3 Server, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'bC3 Server', configuration 'Release|Win32'
Compiling...
weaving ... .\StdAfx.cpp -> .\Release\StdAfx.cpp
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afxcomctl32.h(240): error: pasting "_InitCommonControls" and "(" does not give a valid preprocessing token
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afxcomctl32.h(240): error: pasting ")" and "(" does not give a valid preprocessing token
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afxcomctl32.h(241): error: pasting "_InitCommonControlsEx" and "(" does not give a valid preprocessing token
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afxcomctl32.h(241): error: pasting ")" and "(" does not give a valid preprocessing token

..............
..............

C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afxcomctl32.inl(185): error: pasting "AfxCtxPageSetupDlgA" and "(" does not give a valid preprocessing token
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afxcomctl32.inl(186): error: pasting "AfxCtxPageSetupDlgW" and "(" does not give a valid preprocessing token
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/atlalloc.h(80): error: invalid member declaration near token `i64'
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/atlalloc.h(89): error: invalid member declaration near token `i64'
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afx.h(1067): error: invalid member declaration near token `generic'
C:/Program Files/Microsoft Visual Studio 8/VC/atlmfc/include/afx.h(1113): error: invalid member declaration near token `generic'
AspectC++ failed for StdAfx.cpp
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Release\AccountsDlg.sbr': No such file or directory
Build log was saved at "file://c:\1\bc3_server\source\Release\BuildLog.htm"
bC3 Server - 379 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20070804/f1676742/attachment.html>


More information about the aspectc-user mailing list