April 12, 2004
Hello,

I tried to compile GD library (http://www.boutell.com/gd/) v2.0.22 with DMC
v8.40 but I got errors:
{
^
gd.c(75) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(122) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(165) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(204) : Error: initializer or function body for dllimport not allowed
{
^
gd.c(210) : Error: initializer or function body for dllimport not allowed
Fatal error: too many errors
--- errorlevel 1

Brian


April 18, 2004
What the error is saying is that if a declaration is being imported, i.e. if it is expected to be implemented in some external dll, then there shouldn't be a definition of it locally.

"Brian Gardner" <briangr@friberg.us> wrote in message news:c5er15$me2$1@digitaldaemon.com...
> Hello,
>
> I tried to compile GD library (http://www.boutell.com/gd/) v2.0.22 with
DMC
> v8.40 but I got errors:
> {
> ^
> gd.c(75) : Error: initializer or function body for dllimport not allowed
> {
> ^
> gd.c(122) : Error: initializer or function body for dllimport not allowed
> {
> ^
> gd.c(165) : Error: initializer or function body for dllimport not allowed
> {
> ^
> gd.c(204) : Error: initializer or function body for dllimport not allowed
> {
> ^
> gd.c(210) : Error: initializer or function body for dllimport not allowed
> Fatal error: too many errors
> --- errorlevel 1
>
> Brian
>
>