This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51468] cannot find -ldl and collect 2 ld returned 1 exit status


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51468

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-08 18:24:36 UTC ---
(In reply to comment #6)
> I can't get it to work with mingw:

Bugzilla is for bugs, "I can't get it to work" is not a bug.
Please find a more suitable forum for seeking help with this problem.

> gcc -ldlfcn -> not found

-l is for linking to libraries, but dlfcn is a function, not a library.
If you've downloaded that dlfcn package you should be able to link using -ldl
and -Lblah/lib where blah is the location of the dlfcn files.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]