Error compiling ccronexpr.c

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tartoche54
New user
Posts: 3
Joined: 11 May 2020, 18:48
Location: FR

Error compiling ccronexpr.c

#1 Post by tartoche54 » 11 May 2020, 18:54

Hello
i am new to the forum
I can't compile ESPEasy
I have an error with ccronexpr.c

"
Compiling .pio\build\normal_ESP8266_4M1M\libcd4\Adafruit STMPE610_ID377\Adafruit_STMPE610.cpp.o
Compiling .pio\build\normal_ESP8266_4M1M\libe37\ESP8266mDNS\LEAmDNS.cpp.o
Compiling .pio\build\normal_ESP8266_4M1M\lib24d\ESPeasySerial\ESPEasySerial_ESP8266_noSWserial.cpp.o
lib\ccronexpr\ccronexpr.c:99:30: warning: 'struct tm' declared inside parameter list [enabled by default]
time_t cron_mktime_gm(struct tm* tm) {
^
lib\ccronexpr\ccronexpr.c:99:30: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
lib\ccronexpr\ccronexpr.c: In function 'cron_time_gm':
lib\ccronexpr\ccronexpr.c:149:5: warning: return makes pointer from integer without a cast [enabled by default]
return gmtime_r(date, out);
^
lib\ccronexpr\ccronexpr.c: In function 'cron_mktime_local':
lib\ccronexpr\ccronexpr.c:154:7: error: dereferencing pointer to incomplete type
tm->tm_isdst = -1;
"

Can you help me please ?

Thank you

User avatar
Ath
Normal user
Posts: 3508
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Error compiling ccronexpr.c

#2 Post by Ath » 11 May 2020, 18:58

What is your build environment? ArduinoIDE, VSCode or Atom?

What branch are you trying to compile?
/Ton (PayPal.me)

tartoche54
New user
Posts: 3
Joined: 11 May 2020, 18:48
Location: FR

Re: Error compiling ccronexpr.c

#3 Post by tartoche54 » 11 May 2020, 20:24

Hello

My environment is VSCode with Platformio and i try to compile ESPEasy-mega

tartoche54
New user
Posts: 3
Joined: 11 May 2020, 18:48
Location: FR

Re: Error compiling ccronexpr.c

#4 Post by tartoche54 » 11 May 2020, 21:05

Yes, i find my problem !!
i have a conflit with time.h library

i dont understand all ... but i've resolved my error

TD-er
Core team member
Posts: 8748
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Error compiling ccronexpr.c

#5 Post by TD-er » 11 May 2020, 21:55

tartoche54 wrote: 11 May 2020, 21:05 Yes, i find my problem !!
i have a conflit with time.h library

i dont understand all ... but i've resolved my error
I guess you had some other library installed?
You should not have to change the code yourself to make it compile.
Or did you create a set of plugins for yourself?
In that case I would like to hear what set of plugins could create this build error.

Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests