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

Brad Eck br@d|eyjeck @end|ng |rom gm@||@com
Mon Apr 19 11:14:13 CEST 2021


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 and install on windows with a bunch of errors like:

undefined reference to `_imp__*`

where * is some function defined in a header file and implemented in the
corresponding source file.

Am i missing a compiler flag or something?

Current output from winbuilder :
https://win-builder.r-project.org/9aIcl8Fxu7w1/00install.out
or https://pastebin.com/8JQNpNKp

source code: https://github.com/bradleyjeck/epanet2toolkit/tree/v22dev

Any insights appreciated.

Brad

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list