[gil::io] clang compiler error

Hi all, I'm trying to fix some compiler errors with clang and the new gil::io. The following trivial code just wont compile: extern "C" { #include <stdio.h> #include <jpeglib.h> } int main() { jpeg_create_compress(NULL); return 0; } The error is: undefined reference to `jpeg_CreateCompress' I guess it's a very simple solution but I'm not much experienced with clang and gcc. Thanks, Christian

On 30 August 2013 21:33, Christian Henning <chhenning@gmail.com> wrote:
I tested and both, GCC 4.8.1 and clang 3.3 compile and link w/o errors: $ g++ -ljpeg jpeg_test.cpp $ ldd ./a.out|grep jpeg libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f21297de000) $ clang -ljpeg jpeg_test.cpp $ ldd ./a.out|grep jpeg libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f4fe66b7000) Best regards, -- Mateusz Loskot, http://mateusz.loskot.net "Participation in this whole process is a form of torture" ~~ Szalony
participants (2)
-
Christian Henning
-
Mateusz Loskot