[Vala] Using LibTIFF (Undefined Reference TIFFOpen and TIFFClose)
- From: Tim Way <tim way vg>
- To: vala-list gnome org
- Subject: [Vala] Using LibTIFF (Undefined Reference TIFFOpen and TIFFClose)
- Date: Wed, 28 Mar 2012 09:52:45 -0500
Hi,
I am trying to use LibTIFF to work with mulit-page TIFF files. I cannot
seem to get off the starting blocks. I found that libtiff has a .vapi file
built into vala but when I try to use it with this tidbit of code
using Tiff;
...
TIFF testobj = new TIFF("/home/xuser/Pictures/Test.tif", "r");
...
I get the following errors running my valac command:
me host$ valac --pkg gtk+-3.0 --pkg tiff test.vala
test.vala:18.12-18.75: warning: local variable `testobj' declared but never
used
TIFF testobj = new TIFF("/home/xuser/Pictures/Test.tif", "r");
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/tmp/cceW1BJ0.o: In function `_vala_main':
test.vala.c:(.text+0x207): undefined reference to `TIFFOpen'
test.vala.c:(.text+0x252): undefined reference to `TIFFClose'
test.vala.c:(.text+0x4af): undefined reference to `TIFFClose'
collect2: ld returned 1 exit status
error: cc exited with status 256
Compilation failed: 1 error(s), 1 warning(s)
Is this a problem with the bindings or am I just using this incorrectly?
Thanks in advance,
Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]