C
C
cascado2016-09-05 11:33:34
go
cascado, 2016-09-05 11:33:34

Import cycle is not allowed when compiling from under cmd, from under IDE, everything is in order, CHADNT?

Good afternoon. The problem is in compiling the simplest hello_world with handles, "go run lab02.go" speaks of cyclic references when importing, although as far as I understand this is impossible in this case, since the source code only imports to native fmt. With all this, if you use LiteIDE ( https://github.com/visualfc/liteide) , then the compilation goes well. Also confuses the list of imports in the answer, as if it's trying to compile something else. In general, I do not catch up with something. Poke your nose, be kind. Thank you in advance. Compiled file - https://gist.github.com/cascad-s/91ab92c85b26a4066... ​​, compiler response - https://yadi.sk/i/xsvFGM4GunbDB

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2016-09-05
@cascado

Do you have something else in the folder with the lab02.go file?
It is strange that you are running the lab02 package file, because you should be running the main package file. Replace in file package lab02withpackage main

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question