Linux shared library compilation.

Home Forums Forum Linux shared library compilation.

This topic contains 2 replies, has 1 voice, and was last updated by  Di Li 5 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #76686 Reply

    Dave

    I’m having some issues getting a very basic shared library to compile with ecc that works successfully with both a vanilla install of clang and gcc.

    To test I created a small C program with a function called testfunc that just performs a printf.

    Compiling with ecc -target x86_64-linux -shared -o test.so test.c results in linker errors for an undefined reference to ‘main’ in crt1.c.

    I passed -v to the compile command for both vanilla clang and ecc and noticed that ecc was not passing the -shared flag to the linker and that several other flags were different as well.

    Is this a bug in ecc or am I just passing the wrong flags?

    Thanks,
    Dave

    #77471 Reply

    Emmanuel Blot

    I’m facing the same issue.

    Is shared library creation supported by ELLCC?

    #77793 Reply

    Di Li

    Hi,

    seems I also have this problem.

    I am using ELLCC to generate windows an application on mac. My project involves lame library. When I use ecc to compile and link, I get this error:

    “/usr/local/lib/libmp3lame.a: error adding symbols: File format not recognized”

    gcc works well with the library.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Linux shared library compilation.
Your information: