보관함

vscode go Example실행

프로젝트용 폴더 생성

main.go 파일 생성

package main import “fmt” func main() { fmt.Println(“hello world”) }

vscode 로 폴더 열기

F5 로 실행 -> Error

dlv 파일이 없어서 생긴 문제 인것 같아서 일단 delve 패키지 install

brew install delve

하지만

go: go.mod file not found in current directory or any parent directory; see […]

Library 생성시 Debug와 Release를 나누어 빌드

Debug에 구성속성 -> 일반 -> 대상이름을 $(ProjectName) 에서 $(ProjectName)D 로 변경

ProjectName.exp : warning LNK4070: /OUT:ProjectName.dll directive in .EXP differs from output filename “ProjectNameD.dll”; ignoring directive

원인 : 상기 경고는 DLL ProjectSetting 에서 Output file name 을 바꾸면 나타나는 현상입니다. ( ProjectName.dll -> ProjectD.dll ) .def 파일의 내용중에 아래 와 같이 ProjectName.dll 로 되어있어서 .exp […]