Re: datadir variable

Luka Napotnik wrote:

When I didn't use autoconf, I loaded images with an absolute path. But
now I use autoconf and if I do make install, the path is wrong. Now I
figured out that I need to get the right path with a $datadir variable
which is in How do I get that variable into my C program?

Luka Napotnik

just add some lines to your like these:
        -I srcdir@ \
        -DLOCALEDIR=\"$(localedir)\" \
        -DLIBDIR=\"$(libdir)\" \

These make defines named LOCALEDIR, LIBDIR, DATADIR available to your source.


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