Using OpenSSL library in D -


I have to use OpenSSL library at Ubuntu 10.04 with DMD + Tango bundle. I've compiled OpenSSL 1.0.0d I have files:

  • /usr/local/ssl/lib/libssl.a
  • / usr / local / ssl / lib /libcrypto.a

    So, I'm using them like this:

    $ dmd myfile.d -l / usr / local / ssl / And error is:

    No such file: File format not recognized collection 2: LD 1 exit status --- Error Level 1

    I also tried to do it with OpenSSL 0.9.8r is. I do not have any information: /

    I can prepare SSL certification, so I think OpenSSL works right.

    Please help me.

    I believe the second argument is -ll / usr / local / ssl / lib should be -L once to the compiler to rest the linker, and then ld -L for the option That the library adds a directory to the search path).

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -