www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Odd Linux linking error

reply "Jeremy DeHaan" <dehaan.jeremiah gmail.com> writes:
I built some C shared libraries on Mint a while back and 
everything with my binding worked out fine. I decided to try out 
ubuntu and on getting everything set up there(using the same 
previously built shared libs), I am getting an error that I am 
unfamiliar with.

/usr/bin/ld: -f may not be used without -shared

I have tried googling it with little success, so I was wondering 
if someone here could at least help to point me in the right 
direction. I'm not building a shared library so the addition of a 
shared switch doesn't seem like the way to go.(Also, I tried 
adding it anyways, and it just gave me different errors)

Is this a D mistake on my part? Should I recompile the libs for 
ubuntu specifically? Any help would be much appreciated.

Thanks as usual!
Feb 25 2014
parent reply "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
Can you post the full command line of the linker invocation?
Feb 25 2014
parent "Jeremy DeHaan" <dehaan.jeremiah gmail.com> writes:
On Tuesday, 25 February 2014 at 19:41:54 UTC, Marc Schütz wrote:
 Can you post the full command line of the linker invocation?
It was done through Mono-D, so to answer this for you I went and tried do it on a command line. I got some different errors, so I'm currently working on fixing them. It looks like ubuntu really just didn't like the pre built shared libraries I had. I'm post again tomorrow if I'm still getting the same issue.
Feb 25 2014