tags:

views:

30

answers:

1

I am trying to compile libyaml under Windows 7 with MingW.

I have tried to compile 0.1.2 and 0.1.3 but i just get this error:

api.c:579: error: failure in redeclaration of 'yaml_token_delete': dllimport'd symbol lacks external linkage.
api.c:579: confused by earlier errors, bailing out

Have anyone else seen this error? Do you guys and gals know how to fix it?

Thanks in advance, Micke

A: 

There is a patch floating around the ruby installer community that I'm hoping points to a fix here. I had to manually patch the yaml-0.1.3 include/yaml.h file, changing the line:

...
#ifdef WIN32
...

to

...
#if defined(__MINGW32__)
#   define  YAML_DECLARE(type)  type
#elif defined(WIN32)
...

I'm still compiling, but I'm hopeful. Hopefully this will help you also.

Ty Connell
Tried to compile standalone libyaml without rubyinstaller runner and it worked! Will try the whole shebang later! thanks!
Micke
It does work with rubyinstaller to! thanks man!
Micke