Re: [Anjuta-list] -ldl Makefile setting Question



JD Dubchak wrote:

Hello,

I'm trying to compile a target that requires an -ldl compiler flag at compile time. Where would I put that? That is, which file (Makefile, Makefile.am, Makefile.in) does it go into?

Settings > Compiler & Linker > Libraries, just add dl library (it's in list)

If you really want edit manually Makefiles, you always must edit Makefile.am
because Makefile.in is created from Makefile.am and Makefile created from
Makefile.in. In Makefile.am, add -ldl to LDADD flags. You also have to go in
Project Settings to tell Anjuta tou don't want it create/write Makefile.am from
src dir.

Regards.
Erwan.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]