Ok.
I just needed to create a symbolic link for libgcc_s.so in the /lib directory
root@omap3-multi:/lib# ln -s libgcc_s.so.1 libgcc_s.so

It works now, program compiles and executes fine.
root@omap3-multi:~# ./a.out 
Hello world 

@kris 
the -0 just renames the executable as hello. Otherwise default is a.out



On Sun, Jan 20, 2013 at 6:18 AM, Mike Peterson <mikepe@pacbell.net> wrote:
Bitbake is used for building file system images from source

If you are running one of the standard images, it is not necessary



On 1/19/2013 4:34 PM, Srinath M wrote:
Yes, i installed the full package task-native-sdk and i get
root@omap3-multi:~# gcc hello.c
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status

Btw i didn't do any bitbake program. Could that be a reason?


On Sun, Jan 20, 2013 at 6:00 AM, Mike Peterson <mikepe@pacbell.net> wrote:
The recommendation on the gumstix site is to install the full package

opkg install task-native-sdk

I did this, and had no problem compiling



On 1/19/2013 12:43 PM, Srinath M wrote:
Hi

I installed gcc with opkg
opkg install gcc
Package gcc (4.5-r37.1+svnr170880.9) installed in root is up to date.

But if i try to compile helloworld it says gcc doesn't exist
root@omap3-multi:~# gcc hello.c
-sh: gcc: command not found

What am i missing?



------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912


_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users




------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012


_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users