Details
Description
i am trying build xerces-c with icu
reconf
./configure --enable-transcoder-icu --enable-msgloader-icu --disable-network
in the end
configure:21971: Report:
configure:21973: File Manager: Windows
configure:21975: Mutex Manager: Windows
configure:21977: Transcoder: windows
configure:21979: NetAccessor: disabled
configure:21981: Message Loader: inmemory
in config.log
configure:18085: checking for ucnv_open in -licuuc
configure:18103: g++ -o conftest.exe -O2 -mthreads -I/icu1/include -lpthread -lm -L/icu1/lib -licui18n -licuuc -licudata -lpthread -lm conftest.cpp >&5
C:\Users\ALEKSE~1.DOB\AppData\Local\Temp\ccg1wi5K.o:conftest.cpp.text.startup+0x1e): undefined reference to `ucnv_open_51'
collect2.exe: error: ld returned 1 exit status
This error occurs because conftest.cpp specified later runtime libraries on which it depends.
this command work fine
g++ -o conftest.exe -O2 conftest.cpp -mthreads -I/icu1/include -lpthread -lm -L/icu1/lib -licui18n -licuuc -licudata -lpthread -lm