ofxSunCalc & Poco Class

Hi all,

Pretty newby here, so here goes…

I am hoping to utilise the ofxSunCalc addon within my program, but get a bunch of errors when I go to compile it. I’m running W10, VS2019.

The error:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C1083	Cannot open include file: 'Poco/LocalDateTime.h': No such file or directory (compiling source file ..\..\..\addons\ofxSunCalc\src\ofxSunCalc.cpp)	mySketch	d:\onedrive\documents\of_v0.10.1_vs2017_release\addons\ofxsuncalc\src\ofxsuncalc.h	19

In the code I see that calls to the Poco class are underlined red:

Poco::LocalDateTime ofxSunCalc::julianDateToDate( double j ) {
    Poco::LocalDateTime d(j);// + 0.5 - J1970);
    return d;

How might I get access to the Poco class??


You need to make sure ofxPoco is included in your project. You can add it via the Project Generator.


Thanks, a nice quick fix!

1 Like