Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How can I compile my .dll to linux?

It is written in c#. gcc was the tool I've tried with. The result:
ir_dll.c:2:16: io.h: The file or directory does not exist.
ir_dll.c:6:22: sysstat.h: The file or directory does not exist.
ir_dll.c:7:21: direct.h: The file or directory does not exist.

I have found them but the system dodn't.
Please help me!

Comments

  • ITAITA Member Posts: 463
    : It is written in c#. gcc was the tool I've tried with. The result:
    : ir_dll.c:2:16: io.h: The file or directory does not exist.
    : ir_dll.c:6:22: sysstat.h: The file or directory does not exist.
    : ir_dll.c:7:21: direct.h: The file or directory does not exist.
    :
    : I have found them but the system dodn't.
    : Please help me!
    :
    :

    C# is generally not compatible with Linux although it can be used with Mono which is a free version of the .NET runtime. You can't compile with gcc as far as I know because that is a C/C++ compiler not C# (there are probably options which I don't know which you're using to compile C#, yes/no?).

    Also remember under Linux DLL's don't exist. Instead it's *.so libraries and *.a libs - .a means the library is static while .so means it's dynamic.

    Here's a link to the Mono page http://www.mono-project.com/about/index.html

    Here's a link to writing libraries in C/C++ for Linux.

    http://www.openismus.com/documents/linux/building_libraries/building_libraries.shtml

    and another:
    http://crasseux.com/books/ctutorial/Building-a-library.html


    Hope this helps,

    ITA


    "Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"

Sign In or Register to comment.