I installed ICU on ubuntu 9.10
and created under netbeans 6.8 main.cpp for test

#include <unicode/ucsdet.h>
/*
 *
 */
using namespace std;

int main(int argc, char** argv) {
    UErrorCode status = U_ZERO_ERROR;
    UCharsetDetector *csd = ucsdet_open_4_0(&status);
    return (EXIT_SUCCESS);
}

Compiler throw an error
/home/joe/NetBeansProjects/RedFish/main.cpp:28: undefined reference to `ucsdet_open_4_0'

thank you for help