Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Cannot find library file

Hi Erik,

Thanks! It works now (at least the library file is found)

Regards,

Fernando

Erik Toussaint escribió:
>
> Hi Fernando,
>
> I'm no expert on this issue, but since no one else answered your question,
> I'll give it a try. (Maybe you already solved your problem on your own. In
> that case just ignore this message.)
>
> I think it has to do with the way the -l option is treated by the linker.
> The documentation states that it takes the name of the library you
> specified, and prepends 'lib' and appends '.a' to it.
> So when you use for instance the option -lmylib, the linker actually
> searches for a file named libmylib.a (I believe it also recognizes some
> other file extensions, but I'm not sure which). It automatically searches
> a couple standard directories and you can specify an extra directory to
> search with the -L option. So, in your case, with the complete path and
> file name after the -l option, the linker gets confused.
>
> I think you have two options:
> 1. Change the name of the library, if you can, following the standard
> pattern, add its name (without path, lib prefix and file extension) to the
> 'Libraries' box (the -l option), and add the directory where it is located
> in the box for 'Library search paths' (the -L option).
> 2. Instead of under the Libraries section of the linker options, add the
> path and name of your library file under the Miscellaneous section, in the
> 'Other objects' box. I guess this is the easiest solution.
>
> Let me know if this helps.
>
> Greetings,
> Erik.
>
> ----------
>
> From: "Fernando Molina" <fmolina@xxxxxxxxxxxxxx>Date: Fri, 21 May 2010
> 10:32:10 -0300 (ART)Delivered-to: photran@eclipse.orgImportance:
> NormalUser-agent: SquirrelMail/1.4.9a
>
>
>
>
>
> Hello:
>
> I have run into a problem.
> I cannot get a library linked in a project, I always get messages like:
> c:/gcc/bin/../lib/gcc/x86_64-pc-mingw32/4.5.0/../../../../x86_64-pc-mingw32/bin/ld.exe:
> cannot find -lE:/Fer/eclipse/Fit41/levmardll_x64.lib
> collect2: ld returned 1 exit status
> make: *** [Fit41] Error 1
> I included levmardll_x64.lib in Project Properties (right click in project
> folder)->Fortran Build->Settings->GNU Fortran linker->Libraries; and also
> in Fortran General->Paths and Symbols->Libraries, no luck either way.
> But the path after '-l' is correct. What I am doing wrong?
>
> Thanks all,
>
> Fernando
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________
> photran mailing list
> photran@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/photran
>




Back to the top