[GRASS-user] help

hello
I’m using GRASS-6.4.0RC6. I want to use GRASS libraries for programing with c .
I don’t khnow how i can work with GRASS libraries in eclipse under Fedora 8 and seeing the results.
if it’s not possible in Eclipse or KDE , would you please guide me to write a simple sample using these libraries , compiling and running it.