Bug 4065 - Cannot find external library
Summary: Cannot find external library
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8.8.1
Hardware: PC Linux
: Low normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-23 08:27 UTC by Matt
Modified: 2015-08-20 13:34 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Main.cs containing minimal source to reproduce problem (363 bytes, text/x-csharp)
2012-03-23 08:27 UTC, Matt
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Matt 2012-03-23 08:27:41 UTC
Created attachment 1566 [details]
Main.cs containing minimal source to reproduce problem

Description of Problem:

Dll not found exception

Steps to reproduce the problem:
1. Create a console application with the attached Main.cs file.
2. Compile the attached foo.cpp c++ (gcc invocation at top of file).
3. Run the ExternalLib solution.

Actual Results:

Dll not found exception.

Expected Results:

No exception.

How often does this happen? 

Always.

Additional Information:

I seem to only be able to attach one file so here is the c++ code:

calder@pharos:/tmp$ cat foo.cpp 
////////////////////////////////////
// Compile with:
// gcc -o libfoo.so -DPLATFORM64 -fPIC -shared foo.cpp

extern "C" {void foo();}

void foo() {}

///////////////////////////////////
Comment 1 Mikayla Hutchinson [MSFT] 2012-03-23 14:40:16 UTC
If you need to attach an entire solution, you can use a zip file or tarball.

Are you certain that your library has the same architecture (32/64) as the Mono process?

You can find some troubleshooting info here:
http://www.mono-project.com/DllNotFoundException#Troubleshooting_DllNotFoundExceptions
Comment 2 Matt 2012-03-23 14:58:01 UTC
Yes absolutely.
Comment 3 Lluis Sanchez 2015-08-20 13:34:29 UTC
Not an XS bug.