run.cpp 100% 44 0.0KB/s 00:00 test.h 100% 98 0.1KB/s 00:00 test.cpp 100% 858 0.8KB/s 00:00 C:\Users\Sumanth.Gokapai\Downloads\Headerfile doubt>ssh pi@192.168.36.174 cd guessing_game; g++ run.cpp test.cpp -o program /tmp/ccwr4nM9.o:(.data+0x0): multiple definition of `spi_file_handle' /tmp/ccxIgUn8.o:(.data+0x0): first defined here /tmp/ccwr4nM9.o:(.bss+0x0): multiple definition of `spi_xfer_struct' /tmp/ccxIgUn8.o:(.bss+0x0): first defined here /tmp/ccwr4nM9.o:(.bss+0x20): multiple definition of `spi_array_out' /tmp/ccxIgUn8.o:(.bss+0x20): first defined here /tmp/ccwr4nM9.o:(.bss+0x40): multiple definition of `spi_array_in' /tmp/ccxIgUn8.o:(.bss+0x40): first defined here /tmp/ccwr4nM9.o: In function `spi_setup()': test.cpp:(.text+0x0): multiple definition of `spi_setup()' /tmp/ccxIgUn8.o:run.cpp:(.text+0x0): first defined here /tmp/ccwr4nM9.o: In function `spi_transfer_array(unsigned char, unsigned char*, unsigned char*)': test.cpp:(.text+0x84): multiple definition of `spi_transfer_array(unsigned char, unsigned char*, unsigned char*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x84): first defined here /tmp/ccwr4nM9.o: In function `fatal_error(char*)': test.cpp:(.text+0x124): multiple definition of `fatal_error(char*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x124): first defined here /tmp/ccwr4nM9.o: In function `fatal_error(char const*)': test.cpp:(.text+0x14c): multiple definition of `fatal_error(char const*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x14c): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3_set_address(int, char const*)': test.cpp:(.text+0x174): multiple definition of `BrickPi3_set_address(int, char const*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x174): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::BrickPi3(unsigned char)': test.cpp:(.text+0x2f8): multiple definition of `BrickPi3::BrickPi3(unsigned char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2f8): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::BrickPi3(unsigned char)': test.cpp:(.text+0x2f8): multiple definition of `BrickPi3::BrickPi3(unsigned char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2f8): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::spi_write_8(unsigned char, unsigned char)': test.cpp:(.text+0x390): multiple definition of `BrickPi3::spi_write_8(unsigned char, unsigned char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x390): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::spi_read_16(unsigned char, unsigned short&)': test.cpp:(.text+0x400): multiple definition of `BrickPi3::spi_read_16(unsigned char, unsigned short&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x400): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::spi_read_32(unsigned char, unsigned int&)': test.cpp:(.text+0x4cc): multiple definition of `BrickPi3::spi_read_32(unsigned char, unsigned int&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x4cc): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::spi_read_string(unsigned char, char*, unsigned char)': test.cpp:(.text+0x5ac): multiple definition of `BrickPi3::spi_read_string(unsigned char, char*, unsigned char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x5ac): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::detect(bool)': test.cpp:(.text+0x6b4): multiple definition of `BrickPi3::detect(bool)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x6b4): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_manufacturer(char*)': test.cpp:(.text+0x8c8): multiple definition of `BrickPi3::get_manufacturer(char*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x8c8): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_board(char*)': test.cpp:(.text+0x900): multiple definition of `BrickPi3::get_board(char*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x900): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_version_firmware(char*)': test.cpp:(.text+0x9fc): multiple definition of `BrickPi3::get_version_firmware(char*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x9fc): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_version_hardware(char*)': test.cpp:(.text+0x938): multiple definition of `BrickPi3::get_version_hardware(char*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x938): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_id(char*)': test.cpp:(.text+0xac4): multiple definition of `BrickPi3::get_id(char*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0xac4): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_led(unsigned char)': test.cpp:(.text+0xba4): multiple definition of `BrickPi3::set_led(unsigned char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0xba4): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_3v3()': test.cpp:(.text+0xbe0): multiple definition of `BrickPi3::get_voltage_3v3()' /tmp/ccxIgUn8.o:run.cpp:(.text+0xbe0): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_3v3(float&)': test.cpp:(.text+0xc30): multiple definition of `BrickPi3::get_voltage_3v3(float&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0xc30): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_5v()': test.cpp:(.text+0xc98): multiple definition of `BrickPi3::get_voltage_5v()' /tmp/ccxIgUn8.o:run.cpp:(.text+0xc98): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_5v(float&)': test.cpp:(.text+0xce8): multiple definition of `BrickPi3::get_voltage_5v(float&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0xce8): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_9v()': test.cpp:(.text+0xd50): multiple definition of `BrickPi3::get_voltage_9v()' /tmp/ccxIgUn8.o:run.cpp:(.text+0xd50): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_9v(float&)': test.cpp:(.text+0xda0): multiple definition of `BrickPi3::get_voltage_9v(float&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0xda0): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_battery()': test.cpp:(.text+0xe08): multiple definition of `BrickPi3::get_voltage_battery()' /tmp/ccxIgUn8.o:run.cpp:(.text+0xe08): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_voltage_battery(float&)': test.cpp:(.text+0xe58): multiple definition of `BrickPi3::get_voltage_battery(float&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0xe58): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_sensor_type(unsigned char, unsigned char, unsigned short, i2c_struct_t*)': test.cpp:(.text+0xec0): multiple definition of `BrickPi3::set_sensor_type(unsigned char, unsigned char, unsigned short, i2c_struct_t*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0xec0): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::transact_i2c(unsigned char, i2c_struct_t*)': test.cpp:(.text+0x117c): multiple definition of `BrickPi3::transact_i2c(unsigned char, i2c_struct_t*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x117c): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_sensor(unsigned char, void*)': test.cpp:(.text+0x1368): multiple definition of `BrickPi3::get_sensor(unsigned char, void*)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x1368): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_motor_power(unsigned char, signed char)': test.cpp:(.text+0x2050): multiple definition of `BrickPi3::set_motor_power(unsigned char, signed char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2050): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_motor_position(unsigned char, int)': test.cpp:(.text+0x20cc): multiple definition of `BrickPi3::set_motor_position(unsigned char, int)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x20cc): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_motor_position_relative(unsigned char, int)': test.cpp:(.text+0x2184): multiple definition of `BrickPi3::set_motor_position_relative(unsigned char, int)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2184): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_motor_encoder(unsigned char, int&)': test.cpp:(.text+0x2760): multiple definition of `BrickPi3::get_motor_encoder(unsigned char, int&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2760): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_motor_dps(unsigned char, short)': test.cpp:(.text+0x2258): multiple definition of `BrickPi3::set_motor_dps(unsigned char, short)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2258): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_motor_limits(unsigned char, unsigned char, unsigned short)': test.cpp:(.text+0x22ec): multiple definition of `BrickPi3::set_motor_limits(unsigned char, unsigned char, unsigned short)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x22ec): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_motor_status(unsigned char, unsigned char&, signed char&, int&, short&)': test.cpp:(.text+0x239c): multiple definition of `BrickPi3::get_motor_status(unsigned char, unsigned char&, signed char&, int&, short&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x239c): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::offset_motor_encoder(unsigned char, int)': test.cpp:(.text+0x2530): multiple definition of `BrickPi3::offset_motor_encoder(unsigned char, int)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2530): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::reset_motor_encoder(unsigned char)': test.cpp:(.text+0x25e8): multiple definition of `BrickPi3::reset_motor_encoder(unsigned char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x25e8): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::reset_motor_encoder(unsigned char, int&)': test.cpp:(.text+0x2624): multiple definition of `BrickPi3::reset_motor_encoder(unsigned char, int&)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2624): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::set_motor_encoder(unsigned char, int)': test.cpp:(.text+0x26a4): multiple definition of `BrickPi3::set_motor_encoder(unsigned char, int)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x26a4): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::get_motor_encoder(unsigned char)': test.cpp:(.text+0x2724): multiple definition of `BrickPi3::get_motor_encoder(unsigned char)' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2724): first defined here /tmp/ccwr4nM9.o: In function `BrickPi3::reset_all()': test.cpp:(.text+0x2824): multiple definition of `BrickPi3::reset_all()' /tmp/ccxIgUn8.o:run.cpp:(.text+0x2824): first defined here collect2: error: ld returned 1 exit status C:\Users\Sumanth.Gokapai\Downloads\Headerfile doubt>REM ssh pi@192.168.36.174 ./guessing_game/program C:\Users\Sumanth.Gokapai\Downloads\Headerfile doubt>ssh pi@192.168.36.174 Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Aug 24 09:24:21 2018 from 192.168.35.127 SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.