Note that if your program is simple, you can just do:goc footo build from and executable foo from foo.go, where goc is something like:6g -I . $i.go && 6l -L . -o $i $i.6(change 6g and 6l to the compiler and linker that you use)Also, you can use goplay as described in http://mindchunk.blogspot.com/2011/05/svgo-and-google-web-fonts.html to interactively build and see the pictures that your program draws.
On Tuesday, August 16, 2011 7:30:46 PM UTC-4, dlin wrote:
Andrew, you are right.
I use make to make my program and my programs on other directory.
I'll try your method.
But, It is a little difficult. Because I use many Makefile function.
6g -I . $i.go && 6l -L . -o $i $i.6
doneinto a file, call it goc, make it executable, place it in your PATH.On Aug 17, 2011, at 7:56 AM, Daniel Lin wrote:Do u mean u have sent attachment file goc?
2011-8-17 下午7:18 於 "Anthony Starks" <ajst...@gmail.com> 寫道:
> goc is a shell script that you must write. I sent an example.
>
> On Aug 17, 2011, at 1:08 AM, Daniel Lin wrote:
>
>> What's goc?
>>
>> 2011/8/17 ajstarks <ajst...@gmail.com>
>> Note that if your program is simple, you can just do:
>>
>> goc foo
>>
>> to build from and executable foo from foo.go, where goc is something like:
>>
>> 6g -I . $i.go && 6l -L . -o $i $i.6
>>
>> (change 6g and 6l to the compiler and linker that you use)
>>
>> Also, you can use goplay as described in http://mindchunk.blogspot.com/2011/05/svgo-and-google-web-fonts.html to interactively build and see the pictures that your program draws.
>>
>>
>>
>> On Tuesday, August 16, 2011 7:30:46 PM UTC-4, dlin wrote: 8g -I . svgo_ex.go && 8l -L . -o svgo_ex svgo.8svgo_ex.go:4: can't find import: github.com/ajstarks/svgo