tiff library - linker error
Hi everybody
I try to create a tiff. My test code is the following: #include "tiffio.h" main(){ TIFF* tif = TIFFOpen("mypic.tif", "w"); TIFFClose(tif); } then i compile with g++ tifftest.cpp and i fail: In function 'main': : undefined reference to 'TIFFOpen' In function 'main': : undefined reference to 'TIFFClose' collect2: ld returned 1 exit status The tiffio.h library is where it should be and both functions are declared there, as well. somebody has an idea? thx a lot. |
It works!
I solved it with: g++ -o tifftest tifftest -lm ltiff Does anybody know why the #include is not sufficient? |
Sorry, there are some errors in the comand
g++ -o tifftest tifftest.cpp -lm -ltiff Hope that it will help somebody:p |
Quote:
|
All times are GMT -5. The time now is 10:05 PM. |