c++ bluetooth nxc comunication library
c++ bluetooth nxc comunication library
I have to send some simple informations (probably strings) from computer (program in C++) to NXT.
http://www.norgesgade14.dk/bluetoothlibrary.php
doesn't work, (compilation problems) and i haven't found another. May i please a link, best with simple tutorial in?
http://www.norgesgade14.dk/bluetoothlibrary.php
doesn't work, (compilation problems) and i haven't found another. May i please a link, best with simple tutorial in?
-
- Posts: 220
- Joined: 23 Jan 2012, 17:07
- Location: Round Rock, TX
Re: c++ bluetooth nxc comunication library
I have used that library for a number of projects. What compiler are you using and what errors do you get?
McSummation aka James
http://www.mcsummation.com/Mindstorms/
http://www.mcsummation.com/Mindstorms/
Re: c++ bluetooth nxc comunication library
CodeBlocks with g++ for windows. Error:
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\sound.h|35|error: extra qualification 'Sound::' on member 'Sound'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\sound.h|40|error: extra qualification 'Sound::' on member 'Sound'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\sound.h|47|error: extra qualification 'Sound::' on member 'print'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\rcx_light.h|17|error: extra qualification 'Light_rcx::' on member 'Light_rcx'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\rcx_light.h|21|error: extra qualification 'Light_rcx::' on member 'Light_rcx'|
||=== Build finished: 5 errors, 0 warnings ===|
Code copied from project's site.
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\sound.h|35|error: extra qualification 'Sound::' on member 'Sound'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\sound.h|40|error: extra qualification 'Sound::' on member 'Sound'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\sound.h|47|error: extra qualification 'Sound::' on member 'print'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\rcx_light.h|17|error: extra qualification 'Light_rcx::' on member 'Light_rcx'|
C:\Users\psorek\Desktop\NXT Ploter\GRRRR\rcx_light.h|21|error: extra qualification 'Light_rcx::' on member 'Light_rcx'|
||=== Build finished: 5 errors, 0 warnings ===|
Code copied from project's site.
-
- Posts: 220
- Joined: 23 Jan 2012, 17:07
- Location: Round Rock, TX
Re: c++ bluetooth nxc comunication library
I don't see the error in the version of sound.h that I have.
Are you trying to use the two header files that cause the errors? If not, don't include them in the project.
Are you trying to use the two header files that cause the errors? If not, don't include them in the project.
McSummation aka James
http://www.mcsummation.com/Mindstorms/
http://www.mcsummation.com/Mindstorms/
Re: c++ bluetooth nxc comunication library
what version of gcc do you use and what compile flags?
Re: c++ bluetooth nxc comunication library
problem is when:
which is used in all of the library. Do i have strange version of compiler, or it is uncompatible with c++ standard?
Code: Select all
class xyz
{
xyz::methode (..);
}
-
- Posts: 27
- Joined: 29 Sep 2010, 19:34
- Location: Denmark
- Contact:
Re: c++ bluetooth nxc comunication library
gcc is correct here. Putting the xyz:: prefix in the class declaration is not valid C++. It is however allowed by Visual C++, which is what the author of the library uses.psorek wrote:problem is when:which is used in all of the library. Do i have strange version of compiler, or it is uncompatible with c++ standard?Code: Select all
class xyz { xyz::methode (..); }
So just remove them all.
Re: c++ bluetooth nxc comunication library
It is not nice. How can i install ONLY Visual C++ compiler? w/o IDE?
Re: c++ bluetooth nxc comunication library
Yeah, it works now. Someone should improve it.
Who is online
Users browsing this forum: Semrush [Bot] and 4 guests