C# problems with Mono on FC6

"drgndancer" <[email protected]>
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
Hello,

I'm trying to install clearsilver 0.10.4 on a new box with Fedora Core
6 on it.  I did a clean install and ran the updates yesterday, so the
box is about as clean as can be.  

Everything runs fine until make enters the csharp directory.  The
seems to be some problems with CS.cs.  The first error I got was to do
using pointers without the "unsafe" keyword.  I fixed this by adding
the keyword to the class definition of CSTcontext.  The keyword was
properly present in the makefile and the class def for HDF, but had
been left off of CSTcontext.

Now I'm getting a new error, and I don't know enough about C# to fix
it easilly.  On line 56, 61, and 86 there are pointer variable
defintions, and the compiler is throwing an "error CS0212: You can
only take the address of unfixed expression inside of a fixed
statement initializer" on them.  A little digging tells me that there
is a "fixed" function that I can use to fix this issue, but I don't
know the syntax.  I tried to just stick the assignment statements
inside the function call, but that got me the confusing error: " error
CS0245: right hand expression is already fixed, no need to use fixed
statement", which seems to contradict the previous error.

I'm going to rerun configure with --disable-csharp, as I don't really
see myself needing it, but I though I'd let you know about the
problem. I'm willing to help test if you need.

Trevor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.