Where are -lplot and -lpng


 
Thread Tools Search this Thread
Top Forums Programming Where are -lplot and -lpng
# 1  
Old 11-03-2010
Where are -lplot and -lpng

Hi All,

I have a makefile for a graphing program utilizing the 'plotutils' pacakage on cygwin/x11. However, when I run the make it can't find the following libraries:

-lplot
-lpng

Have the library names changed or do i need additional libraries to reference?

Cheers,
ScKaSx
# 2  
Old 11-03-2010
for -lpng, you need to install libpng. I'm not sure whether you need to install libpng-dev on cygwin or not.

For -lplot, I'm not familiar with it but a cursory google search suggests installing plotutils. Again, I'm not sure if there's anything like a -dev package you need to install too.

[edit] definitely plotutils-dev and libpng-dev. Installing the libraries alone is enough to use them, but not sufficient to compile with them.

Last edited by Corona688; 11-03-2010 at 07:32 PM..
# 3  
Old 11-03-2010
Thanks for that. I think it does have something to do with the -dev install.

Does anyone know where I can get that for cygwin/x11? I tried to reinstall plotutils from source but got an error. Btw, I am on Windows 7 maybe there is some permission error, or something?

Cheers,
ScKaSx
# 4  
Old 11-03-2010
Quote:
Originally Posted by ScKaSx
Thanks for that. I think it does have something to do with the -dev install.

Does anyone know where I can get that for cygwin/x11? I tried to reinstall plotutils from source but got an error.
the plotutils-dev and libpng-dev binaries should be the libraries you need. Install them the same way you installed the other binary packages. You should install them alongside libpng and libplot.

Like most binary distributions, cygwin seperates packages into the part you just need to run it and the part you just need to compile with it. So to compile with -lpng you need both parts.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question