for compile a test,hello world application (.go file) with golang.
alwayse need cgo compiler or c compiler?

cgo compiler only generate c file. not generate binary executable file.
like https://github.com/xlab/c-for-go


On Wednesday, December 13, 2017 at 4:41:24 AM UTC+3:30, Bruno Albuquerque 
wrote:
>
> What is expected (assuming the code is correctly written). An executable 
> file is generated and can be run normally.
>
> I am sorry but I could not parse your following questions, but I will try 
> some general answers:
>
> 1 - No, you do not need a C compiler to compile recent Go versions. You do 
> need an existing compiled Go version though.
> 2 - You do not need a C compiler to compile Go programs unless you are 
> making use of CGO.
>
> On Tue, Dec 12, 2017 at 3:12 PM <erfang...@gmail.com <javascript:>> wrote:
>
>> example , when you want write a hello world application.
>> after this then you are write a `.go` file.
>> you should enter :
>> go build hello.go
>>
>> if not installed c-compiler at now, what happen?!
>>
>> c-compiler need at building golang?
>> or alwayse?
>> also when need use from golang?
>>
>>
>> On Wednesday, December 13, 2017 at 2:30:41 AM UTC+3:30, C Banning wrote:
>>>
>>> Well, there are binary releases for the most HW/OS combinations - 
>>> https://golang.org/dl/
>>>
>>> On Tuesday, December 12, 2017 at 3:51:43 PM UTC-7, erfang...@gmail.com 
>>> wrote:
>>>>
>>>> so GOLANG will not work, if not install C-Compiler on system.
>>>>
>>>> yeah?
>>>>
>>>> On Wednesday, December 13, 2017 at 2:16:23 AM UTC+3:30, C Banning wrote:
>>>>>
>>>>> Well, GO_BOOTSTRAP lets you use any compiler after go1.4.  I usually 
>>>>> build/install Go using the previous Go-built version - thus, I 
>>>>> built/installed Go1.9 using the Go1.8.1 compiler.
>>>>>
>>>>> On Tuesday, December 12, 2017 at 2:48:57 PM UTC-7, erfang...@gmail.com 
>>>>> wrote:
>>>>>>
>>>>>> so Main compiler is at previous version and made with C? 
>>>>>>
>>>>>> On Wednesday, December 13, 2017 at 1:09:13 AM UTC+3:30, Tamás Gulácsi 
>>>>>> wrote:
>>>>>>>
>>>>>>> Yes. It compiles itself with a previous verson of the compiler first.
>>>>>>
>>>>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to golang-nuts...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to