vocore beginner helloworld
Posted: Wed May 25, 2016 1:58 pm
I am a beginning to use vocore. After I install the openwrt. I am trying to write a simple helloworld program and run the compile command
`find . -name mipsel-openwrt-linux-gcc` -g main.c -o hello
after scp the hello file to vocore /tmp
scp ./hello root@192.168.11.100:/tmp/
then try to run the program:
root@OpenWrt:~# ./hello
sh: ./hello: not found
root@OpenWrt:~#
root@OpenWrt:/tmp# . ./hello
sh: ./hello: line 1: syntax error: unexpected "&" (expecting ")")
root@OpenWrt:/tmp#
please help me to know what's wrong? I follow the instruction from vocore forum. I believe the procedure is correct
`find . -name mipsel-openwrt-linux-gcc` -g main.c -o hello
after scp the hello file to vocore /tmp
scp ./hello root@192.168.11.100:/tmp/
then try to run the program:
root@OpenWrt:~# ./hello
sh: ./hello: not found
root@OpenWrt:~#
root@OpenWrt:/tmp# . ./hello
sh: ./hello: line 1: syntax error: unexpected "&" (expecting ")")
root@OpenWrt:/tmp#
please help me to know what's wrong? I follow the instruction from vocore forum. I believe the procedure is correct