DFRobot / DFRobot_SIM7000

MIT License
42 stars 18 forks source link

Does not compile. #9

Open Jlevett opened 5 years ago

Jlevett commented 5 years ago

Project requires DFRobot_SIMcore.h and this is not included in the project and when external library (below) that has this file is added it does not compile and is full of errors.

https://github.com/DFRobot/DFRobot_SIM

briankardon commented 5 years ago

I have the same problem when I try to compile code with this library included:

path/to/libary/DFRobot_SIM7000-master/DFRobot_SIM7000.h:4:29: fatal error: DFRobot_SIMcore.h: No such file or directory

 #include "DFRobot_SIMcore.h"

And when I try to compile it along with the DFRobot_SIM library, there are many errors.

briankardon commented 5 years ago

Ok, I've determined that the problem only arises if I have both

#include <DFRobot_SIM7000.h>

and

#include <RTClib.h>

in my script. There must be some kind of conflict between the libraries?

briankardon commented 5 years ago

Ok, I think I have a fix. Lines 6 and 7 of the file DFRobot_SIM7000.h are:

#define ON  0
#define OFF 1

I can't find any file in that library that uses those constants, and they seem to interfere with the RTC library (some kind of namespace conflict, I think?), so I commented those two lines out, and everything compiles. Does it actually work? I don't know yet. But it does compile.

Vijaykeerthip-spec commented 3 years ago

I have the same problem when I try to compile code with this library included:

path/to/libary/DFRobot_SIM7000-master/DFRobot_SIM7000.h:4:29: fatal error: DFRobot_SIMcore.h: No such file or directory

 #include "DFRobot_SIMcore.h"

And when I try to compile it along with the DFRobot_SIM library, there are many errors.

is this problem solved? If yes please tell me how to solve? Thanks!

roysG commented 3 years ago

Same issue, any update?

SzymonSak commented 2 years ago

Open DFRobot_SIM7000.h file and change String.h to string.h. You should have string.h already available and your code should compile. I have another issue: Faile to set baud rate.