Hi Trichet,
Have you tried to control the GPIO through commands "SYSFS" instead of trying through "C" app ?
http://processors.wiki.ti.com/index.php/Linux_PSP_GPIO_Driver_Guide#User_Space_-_Sysfs_control
Try the below commands and update me the results.
Note:
Mention your appropriate GPIO no instead 45.
echo 45 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio45/direction
echo 0 > /sys/class/gpio/gpio45/value
echo 1 > /sys/class/gpio/gpio45/value