Page 1 of 1
					
				c++ bluetooth nxc comunication library
				Posted: 25 Feb 2012, 08:36
				by psorek
				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?
 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 25 Feb 2012, 13:11
				by mcsummation
				I have used that library for a number of projects.  What compiler are you using and what errors do you get?
			 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 25 Feb 2012, 13:24
				by psorek
				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.
			 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 25 Feb 2012, 13:42
				by mcsummation
				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.
			 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 25 Feb 2012, 14:13
				by psorek
				what version of gcc do you use and what compile flags?
			 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 25 Feb 2012, 14:35
				by psorek
				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?
 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 26 Feb 2012, 00:13
				by bullestock
				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?
 
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.
So just remove them all.
 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 26 Feb 2012, 08:18
				by psorek
				It is not nice. How can i install ONLY Visual C++ compiler? w/o IDE?
			 
			
					
				Re: c++ bluetooth nxc comunication library
				Posted: 26 Feb 2012, 09:14
				by psorek
				Yeah, it works now. Someone should improve it.