[aspectc-user] NodeName: Error

Panu Bloigu panu.bloigu at mbnet.fi
Tue Dec 5 06:40:34 CET 2006


Hello.

I have managed to isolate the faulty syntax that produces the mysterious
'NodeName: Error' message. I gave the following two files for the AspectC++
compiler.

==============
File: Test.h
==============
#ifndef TEST_H_
#define TEST_H_
#include <pthread.h>
class Test
{
private:
        pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
public:
        Test(){}
        virtual ~Test(){}
};
#endif /*TEST_H_*/

==============
File: main.cpp
==============
#include "Test.h"
int main()
{
        Test t;
        return 0;
}


The compiler output was the following:

===========================================================================
**** Full rebuild of configuration Debug for project NodeNameError ****

make -k clean all
rm -rf  ./main.o  ./main.d NodeNameError repo.acp puma.config

Building puma.config
"/opt/eclipse-3.1.2/plugins/org.aspectc.compiler.linux_0.9.93/AC/ag++"
--gen_config -o puma.config

Building file: ../main.cpp
Invoking: GCC C++ Compiler
/opt/eclipse-3.1.2/plugins/org.aspectc.compiler.linux_0.9.93/AC/ag++
--c_compiler g++ -k -r repo.acp -p .. -c ../main.cpp --Xcompiler -o main.o
-D_useAC -O0 -g3 -Wall -fmessage-length=0 -I..
NodeName: Error
error: Execution failed:
"/opt/eclipse-3.1.2/plugins/org.aspectc.compiler.linux_0.9.93/AC/ac++"
--config "puma.config"  -k -rrepo.acp -p".." -D"_useAC" -I".." -c
"../main.cpp" -o "main.acc"
make: *** [main.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project NodeNameError
===========================================================================

The syntax error which produces the compiler output given above is the
(obviously) illegal initialization of the member mutex in the class Test. If
I remove the initialization, the compilation goes just fine. I'm using the
latest AspectC++ pluging for Eclipse on Eclipse 3.1.2. on Fedora Core 6.

I hope this clears things out atleast a little.

Panu.





More information about the aspectc-user mailing list