Skip to content

ARDUINO IDE ERROR WHILE IMPORTING Dabble.h #4

Description

@karthik-26

I get the following error trace while importing the Dabble.h header file
CODE:

`#include<Dabble.h>

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}`

The error tree i get is :

`
C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\GamePadModule.cpp:5:0: warning: "PI" redefined

#define PI 3.14159

^

In file included from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.h:53:0,

             from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\GamePadModule.cpp:3:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:47:0: note: this is the location of the previous definition

#define PI 3.1415926535897932384626433832795

^

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp: In member function 'void SMSModule::sendMessage(String, String)':

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp:23:94: warning: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]

Dabble.sendModuleFrame(SMS_ID,0,SENDCONTENT,1,new FunctionArg(content.length(),&content[0]));

                                                                                          ^

In file included from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp:2:0:

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.h:106:2: note: initializing argument 2 of 'FunctionArg::FunctionArg(int, byte*, bool)'

FunctionArg(int l ,byte * d, bool _saveData=false)

^

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp: In member function 'void NotificationModule::setTitle(String)':

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp:34:107: warning: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]

Dabble.sendModuleFrame(NOTIFICATION_ID,0,CREATE_NOTIFICATION, 1, new FunctionArg(title.length(),&title[0]));

                                                                                                       ^

In file included from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp:2:0:

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.h:106:2: note: initializing argument 2 of 'FunctionArg::FunctionArg(int, byte*, bool)'

FunctionArg(int l ,byte * d, bool _saveData=false)

^

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp: In member function 'void NotificationModule::notifyPhone(String)':

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp:40:111: warning: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]

Dabble.sendModuleFrame(NOTIFICATION_ID,0,UPDATE_NOTIFICATION, 1, new FunctionArg(content.length(),&content[0]));

                                                                                                           ^

In file included from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\NotifyAndSMSModule.cpp:2:0:

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.h:106:2: note: initializing argument 2 of 'FunctionArg::FunctionArg(int, byte*, bool)'

FunctionArg(int l ,byte * d, bool _saveData=false)

^

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp: In member function 'void DataLoggerModule::createFile(String)':

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp:17:98: warning: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]

Dabble.sendModuleFrame(DATALOGGER_ID,0,FILENAME,1,new FunctionArg(FileName.length(),&FileName[0]));

                                                                                              ^

In file included from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp:2:0:

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.h:106:2: note: initializing argument 2 of 'FunctionArg::FunctionArg(int, byte*, bool)'

FunctionArg(int l ,byte * d, bool _saveData=false)

^

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp: In member function 'void DataLoggerModule::createColumn(String)':

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp:52:137: warning: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]

 Dabble.sendModuleFrame(DATALOGGER_ID,0,COLUMNNAME,2,new FunctionArg(1,&a),new FunctionArg(sendColumnName.length(),&sendColumnName[0]));

                                                                                                                                     ^

In file included from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp:2:0:

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.h:106:2: note: initializing argument 2 of 'FunctionArg::FunctionArg(int, byte*, bool)'

FunctionArg(int l ,byte * d, bool _saveData=false)

^

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp: In member function 'void DataLoggerModule::send(String, String)':

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp:117:127: warning: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]

Dabble.sendModuleFrame(DATALOGGER_ID,0,DATATYPE_CHAR,2,new FunctionArg(1,&columnFlag),new FunctionArg(data.length(),&data[0]));

                                                                                                                           ^

In file included from C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\DataLoggerModule.cpp:2:0:

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.h:106:2: note: initializing argument 2 of 'FunctionArg::FunctionArg(int, byte*, bool)'

FunctionArg(int l ,byte * d, bool _saveData=false)

^

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.cpp: In member function 'getArgumentData':

C:\Users\hp\Documents\Arduino\libraries\Dabble-master\src\Dabble.cpp:349:1: internal compiler error: Segmentation fault

}

^

Please submit a full bug report,

with preprocessed source if appropriate.

See http://gcc.gnu.org/bugs.html for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.`

Screenshot (2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions