Seeed-Studio / SGP30_Gas_Sensor

A arduino example for SGP30_Gas_Sensor,Measurement of TVOC and CO2
15 stars 9 forks source link

multiple definition of ..... #2

Open ZwilleSmutje opened 4 years ago

ZwilleSmutje commented 4 years ago

Error: /tmp/179880365/build/libraries/sensirion_sps_0_0_6/sensirion_hw_i2c_implementation.cpp.o:/home/builder/opt/libraries/latest/sensirion_sps_0_0_6/sensirion_hw_i2c_implementation.cpp:104: first defined here collect2: error: ld returned 1 exit status exit status 1

In all examples it says:

include

#include "sensirion_common.h"

include "sgp30.h"

Cross out the #include "sensirion_common.h", so that in every example it only says:

include

include "sgp30.h"

Lesords commented 1 week ago

Hello,

I'm very sorry to have kept you waiting so long.

Do you still have this problem now?