I made a c++ class that allows me to easily make scientific plots and simulations of things (used rather like BASIC's PLOT command), outputting the image to a PNG file.
My class needs to be compiled with libpng.
So I have this line in my Makefile:
pngwriter.o : pngwriter.cc pngwriter.h
c++ -o pngwriter.o -c pngwriter.cc -lpng -L/sw/lib -I/sw/include
-l (lowecase L) is for the library, and that doesn't seem to need changing to account for its presence in /sw, -L adds the directories where to find libraries and -I adds where to look for the include files (that's a capital I).
For general knowledge, adding -DHELLO, for example, will tell the preprocesor that the preprocessor variable HELLO is defined, and that has the same effect as adding the following to your source code:
#define HELLO
Hope that helps.
Paul
On Saturday, October 12, 2002, at 05:34 PM, Jarrett Byrnes wrote:
So, i'm kinda new to all of this - I was wondering, once I have some packages from fink installed in /sw and all that, how do I get other applications to look in /sw/lib for librarys, /sw/includes for includes, and /sw/bin for $path - i've tried including including /sw/bin in my $path in /sw/bin/init.tsch as well as trying to make $LIB - but ldconfig isn't on OSX, so that doesn't seem to really work......
any suggestions - as it's frustrating to try and ./configure somem source and have it tell you "Can't find gtk-config" when you know it's sitting in /sw/bin/ or "can't find gnome-libs" when they're sitting right there in /sw/lib
-Jarrett
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
