доброго!
пытаюсь прицепить libraw к с++ программе.
----------------
#include "libraw/libraw.h"
int main(int argc, char** argv) {
LibRaw iProcessor;
return (EXIT_SUCCESS);
}
-----------------
компиляция проходит на ура. при линковке - ошибка:
--------------------------------------------------
g++.exe -lraw -lws2_32 -lm -DLIBRAW_NOTHREADS -O4 -I. -Ilibraw -w -DLIBRAW_NODLL -o dist/Debug/MinGW-Windows/trylibraw build/Debug/MinGW-Windows/main.o -Llibraw -Llib -lraw -static
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xccb): undefined reference to `_imp___ZN6LibRaw21adobe_dng_load_raw_ljEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xcd7): undefined reference to `_imp___ZN6LibRaw21adobe_dng_load_raw_ncEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xce3): undefined reference to `_imp___ZN6LibRaw18canon_600_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xcef): undefined reference to `_imp___ZN6LibRaw25canon_compressed_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xcfb): undefined reference to `_imp___ZN6LibRaw19canon_sraw_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd07): undefined reference to `_imp___ZN6LibRaw18eight_bit_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd13): undefined reference to `_imp___ZN6LibRaw15foveon_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd1f): undefined reference to `_imp___ZN6LibRaw13fuji_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd2b): undefined reference to `_imp___ZN6LibRaw19hasselblad_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd37): undefined reference to `_imp___ZN6LibRaw20imacon_full_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd43): undefined reference to `_imp___ZN6LibRaw18kodak_262_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd4f): undefined reference to `_imp___ZN6LibRaw20kodak_65000_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd5b): undefined reference to `_imp___ZN6LibRaw20kodak_dc120_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd67): undefined reference to `_imp___ZN6LibRaw19kodak_jpeg_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd73): undefined reference to `_imp___ZN6LibRaw19kodak_radc_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd7f): undefined reference to `_imp___ZN6LibRaw18kodak_rgb_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd8b): undefined reference to `_imp___ZN6LibRaw19kodak_yrgb_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xd97): undefined reference to `_imp___ZN6LibRaw20kodak_ycbcr_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xda3): undefined reference to `_imp___ZN6LibRaw17leaf_hdr_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xdaf): undefined reference to `_imp___ZN6LibRaw22lossless_jpeg_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xdbb): undefined reference to `_imp___ZN6LibRaw22minolta_rd175_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xdc7): undefined reference to `_imp___ZN6LibRaw25nikon_compressed_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xdd3): undefined reference to `_imp___ZN6LibRaw14nokia_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xddf): undefined reference to `_imp___ZN6LibRaw16olympus_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xdeb): undefined reference to `_imp___ZN6LibRaw15packed_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xdf7): undefined reference to `_imp___ZN6LibRaw18panasonic_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe03): undefined reference to `_imp___ZN6LibRaw15pentax_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe0f): undefined reference to `_imp___ZN6LibRaw18phase_one_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe1b): undefined reference to `_imp___ZN6LibRaw20phase_one_load_raw_cEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe27): undefined reference to `_imp___ZN6LibRaw22quicktake_100_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe33): undefined reference to `_imp___ZN6LibRaw15rollei_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe3f): undefined reference to `_imp___ZN6LibRaw20sinar_4shot_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe4b): undefined reference to `_imp___ZN6LibRaw16smal_v6_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe57): undefined reference to `_imp___ZN6LibRaw16smal_v9_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe63): undefined reference to `_imp___ZN6LibRaw13sony_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe6f): undefined reference to `_imp___ZN6LibRaw17sony_arw_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe7b): undefined reference to `_imp___ZN6LibRaw18sony_arw2_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0xe87): undefined reference to `_imp___ZN6LibRaw17unpacked_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x2455): undefined reference to `_imp___ZN6LibRaw8identifyEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x24f5): undefined reference to `_imp___ZN6LibRaw15packed_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x2757): undefined reference to `_imp___ZN6LibRaw14write_ppm_tiffEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x276f): undefined reference to `_imp___ZN6LibRaw20kodak_ycbcr_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x38ca): undefined reference to `_imp___ZN6LibRaw15pre_interpolateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3a4a): undefined reference to `_imp___ZN6LibRaw10bad_pixelsEPKc'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3a77): undefined reference to `_imp___ZN6LibRaw8subtractEPKc'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3b8a): undefined reference to `_imp___ZN6LibRaw14convert_to_rgbEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3be4): undefined reference to `_imp___ZN6LibRaw13remove_zeroesEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3bfe): undefined reference to `_imp___ZN6LibRaw11fuji_rotateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3c15): undefined reference to `_imp___ZN6LibRaw7stretchEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3cb7): undefined reference to `_imp___ZN6LibRaw18recover_highlightsEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3cce): undefined reference to `_imp___ZN6LibRaw13median_filterEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3ce4): undefined reference to `_imp___ZN6LibRaw16blend_highlightsEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3df0): undefined reference to `htons@4'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x3e2e): undefined reference to `_imp___ZN6LibRaw9tiff_headEP8tiff_hdri'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4134): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x414b): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x416b): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x418a): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x43bb): undefined reference to `_imp___ZN6LibRaw11gamma_curveEddii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4523): undefined reference to `_imp___ZN6LibRaw14write_ppm_tiffEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4831): undefined reference to `_imp___ZN6LibRaw20kodak_ycbcr_load_rawEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4dd7): undefined reference to `_imp___ZN6LibRaw11gamma_curveEddii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4f1f): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4f43): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4f64): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x4f86): undefined reference to `_imp___ZN6LibRaw10flip_indexEii'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x5332): undefined reference to `_imp___ZN6LibRaw4get4Ev'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x539b): undefined reference to `_imp___ZN6LibRaw14foveon_decoderEjj'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x563d): undefined reference to `_imp___ZN6LibRaw4get4Ev'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x5862): undefined reference to `_imp___ZN6LibRaw10jpeg_thumbEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x5873): undefined reference to `_imp___ZN6LibRaw9ppm_thumbEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x5888): undefined reference to `_imp___ZN6LibRaw12foveon_thumbEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x5ea5): undefined reference to `_imp___ZN6LibRaw17jpeg_thumb_writerEP6_iobufPci'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x634c): undefined reference to `_imp___ZN6LibRaw15pre_interpolateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6536): undefined reference to `_imp___ZN6LibRaw10bad_pixelsEPKc'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6566): undefined reference to `_imp___ZN6LibRaw8subtractEPKc'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x65e3): undefined reference to `_imp___ZN6LibRaw15vng_interpolateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6605): undefined reference to `_imp___ZN6LibRaw18foveon_interpolateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x667b): undefined reference to `_imp___ZN6LibRaw14convert_to_rgbEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x669c): undefined reference to `_imp___ZN6LibRaw7stretchEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x66eb): undefined reference to `_imp___ZN6LibRaw13remove_zeroesEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6708): undefined reference to `_imp___ZN6LibRaw11fuji_rotateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6728): undefined reference to `_imp___ZN6LibRaw15lin_interpolateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x67d5): undefined reference to `_imp___ZN6LibRaw12scale_colorsEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x67f2): undefined reference to `_imp___ZN6LibRaw18recover_highlightsEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6817): undefined reference to `_imp___ZN6LibRaw15ahd_interpolateEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6828): undefined reference to `_imp___ZN6LibRaw13median_filterEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6844): undefined reference to `_imp___ZN6LibRaw16blend_highlightsEv'
lib\libraw.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x6866): undefined reference to `_imp___ZN6LibRaw15ppg_interpolateEv'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/trylibraw.exe] Error 1
make[2]: Leaving directory `/d/data/program/trylibraw'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/d/data/program/trylibraw'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s)
-------------------------------------------------------------
система vista, компилятор mingw, ide neat beans.
libraw.a использовал и с сайта, и пересобранную. скопировал в каталог библиотек mingw - тот же результат. пути к libraw.a и .h-файлам в проекте прописаны.
что забыл? в Makefile не дописал что-нибудь?
Новые комментарии