libFLAC++ wraps libFLAC which also uses libogg, so to link you need
something like "-lFLAC++ -lFLAC -logg"
--- Leonidas Andreadis <redryderbb_gr@yahoo.com> wrote:
> Hi,
>
> I've been trying to use the FLAC lib for c++. I need
> to implement basic encoder function in my application,
> so i tried to include encoder.h , set everything to
> the default path, and included
> stream_encoder.cpp,stream encoder.cpp files in the
> project. Include is
>
> #include "FLAC++/encoder.h"
>
> i write something like this
>
> FLAC::Encoder::File test;
>
> i build, compile goes ok but then i get
>
> [Linker Error] Unresolved external
> '_FLAC__stream_encoder_set_ogg_serial_number'
> referenced from H:\FLAC VISUAL\PIGEOS
> KODIKAS\STREAM_ENCODER.OBJ
> [Linker Error] Unresolved external
> '_FLAC__stream_encoder_set_bits_per_sample' referenced
> from H:\FLAC VISUAL\PIGEOS KODIKAS\STREAM_ENCODER.OBJ
>
> and a lot of other similar linker errors.
>
> Am i doing it wrong? Should i follow instructions in
> Readme to build the library?
>
> Thanks
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html