Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected constructor, destructor, or type conversion before ‘::’ token #1

Open
gleamuahmed opened this issue Jun 1, 2011 · 2 comments

Comments

@gleamuahmed
Copy link

Hi ,

Whenever i try to run this through Command line it throws me this error .

Building file: ../src/oscpack/osc/OscOutboundPacketStream.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscOutboundPacketStream.d" -MT"src/oscpack/osc/OscOutboundPacketStream.d" -o"src/oscpack/osc/OscOutboundPacketStream.o" "../src/oscpack/osc/OscOutboundPacketStream.cpp"
Finished building: ../src/oscpack/osc/OscOutboundPacketStream.cpp

Building file: ../src/oscpack/osc/OscPrintReceivedElements.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscPrintReceivedElements.d" -MT"src/oscpack/osc/OscPrintReceivedElements.d" -o"src/oscpack/osc/OscPrintReceivedElements.o" "../src/oscpack/osc/OscPrintReceivedElements.cpp"
Finished building: ../src/oscpack/osc/OscPrintReceivedElements.cpp

Building file: ../src/oscpack/osc/OscReceivedElements.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscReceivedElements.d" -MT"src/oscpack/osc/OscReceivedElements.d" -o"src/oscpack/osc/OscReceivedElements.o" "../src/oscpack/osc/OscReceivedElements.cpp"
Finished building: ../src/oscpack/osc/OscReceivedElements.cpp

Building file: ../src/oscpack/osc/OscTypes.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/osc/OscTypes.d" -MT"src/oscpack/osc/OscTypes.d" -o"src/oscpack/osc/OscTypes.o" "../src/oscpack/osc/OscTypes.cpp"
Finished building: ../src/oscpack/osc/OscTypes.cpp

Building file: ../src/oscpack/ip/posix/NetworkingUtils.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/ni -I"/home/robbe/workspace/KinectTouch/src/oscpack" -I"/home/robbe/workspace/KinectTouch/src/TUIO" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/oscpack/ip/posix/NetworkingUtils.d" -MT"src/oscpack/ip/posix/NetworkingUtils.d" -o"src/oscpack/ip/posix/NetworkingUtils.o" "../src/oscpack/ip/posix/NetworkingUtils.cpp"
../src/oscpack/ip/posix/NetworkingUtils.cpp:30:32: error: ip/NetworkingUtils.h: No such file or directory
../src/oscpack/ip/posix/NetworkingUtils.cpp:40: error: ‘NetworkInitializer’ has not been declared
../src/oscpack/ip/posix/NetworkingUtils.cpp:40: error: ISO C++ forbids declaration of ‘NetworkInitializer’ with no type
../src/oscpack/ip/posix/NetworkingUtils.cpp: In function ‘int NetworkInitializer()’:
../src/oscpack/ip/posix/NetworkingUtils.cpp:40: warning: no return statement in function returning non-void
../src/oscpack/ip/posix/NetworkingUtils.cpp: At global scope:
../src/oscpack/ip/posix/NetworkingUtils.cpp:42: error: expected constructor, destructor, or type conversion before ‘::’ token
make: *** [src/oscpack/ip/posix/NetworkingUtils.o] Error 1

@psydack
Copy link

psydack commented Aug 5, 2011

The same errror this.
Some fix to do?

I trying with eclipse too, but not work.

@majzlik
Copy link

majzlik commented Sep 19, 2011

You can fix this by editing all of subdir.mk files (i think there is six of them in debug dir). For some reason there is full path (Users/Robbe/Worskpace... or something) and you need to change it to path where your KinectTouch is located.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants