As the problems I met, when i use the iotdk-ide's example(i.e. 5_cpp_mraa_analog_input), I can get the right result. But when I create a new project use the mraa library, I get some problems such as "mraa_gpio_init not defined". The environment I set as the examples, and I add the include files. It confused me for a long time.
Thanks for answer!!