Hello,
I am fully aware that my request/question might be slightly off topic
on this ml. But as I guess others might have the same problem, I still
think it might be a good idea...
Anyway I am currently trying to get redland (librdf, rasqal, raptor)
running on Windows. I had, yet, no luck whatsoever compiling it myself
(cygwin+mingw). Some days ago someone pointed me to opensuse-mingw
which I didn't know and tbh is a great project.
Anyway long story short I catched all the necessary noarch rpms
extracted those created .lib files from the included dlls to use them
with visual studio. Created a test project linked against the DLLs and
was absolutely happy finally having a working redland (latest version).
Now the problem, while it is generally "working", as long as you don't
pass handles across dll boundaries.
For example if you are trying to print a rdf model to the console with
"librdf_model_print(model, stdout)" I am getting a access violation
exception. Same goes if you want to let redland write to a file and so
on.
"Unhandled exception at 0x77D03EA0 (ntdll.dll) in Test.exe:
0xC0000005: Access violation writing location 0x00000014."
I'm not really familiar with delveopment on linux or compiling there,
but I read up to the problem on the windows side and my _guess_ is
that it has something to do with dll boundaries [1]. So basically on
the windows side a /MD or /MDd compiler option would be needed. But
this only goes for the CL compiler not sure about mingw.
So now the question, does someone know if there is an fix for getting
this running on Windows or can the packages be recompiled with those
options to make them work on Windows?
I'm not sure if that is a bug etc. cause from my point of view it is
very specific and microsoft vs/cl related.
Anyway I would appreciate some help or further infos.
Best regards
Steve
[1] http://msdn.microsoft.com/de-de/library/ms235460(v=vs.80).aspx
--
To unsubscribe, e-mail: opensuse-mingw+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-mingw+owner(a)opensuse.org