Re: [R-pkg-devel] compiling C sources on windows

2021-04-19 Thread Brad Eck
Thanks Kevin, that fixed the compilation issue. On to the next! Brad On Mon, Apr 19, 2021 at 5:06 PM Kevin Ushey wrote: > I suspect the cause is this: > > > https://github.com/bradleyjeck/epanet2toolkit/blob/aa698568ab85db133f8634928e8cfe661b41ed57/src/epanet2.h#L42-L61 > > Usually, you only n

Re: [R-pkg-devel] compiling C sources on windows

2021-04-19 Thread Kevin Ushey
I suspect the cause is this: https://github.com/bradleyjeck/epanet2toolkit/blob/aa698568ab85db133f8634928e8cfe661b41ed57/src/epanet2.h#L42-L61 Usually, you only need to explicitly use __declspec if you're compiling with MSVC -- it shouldn't be necessary when using a MinGW toolchain (as R's toolch

[R-pkg-devel] compiling C sources on windows

2021-04-19 Thread Brad Eck
Dear List - I'm working to get a package of mine that was archived last year back on to CRAN. The epanet2toolkit provides an R interface to the EPANET simulation engine that is written in C. The latest development version of the package builds and checks ok on mac and linux but fails to compile a