메모/에러 메모 23

C

[Makefile] make (e=2): recipe for target 'clean' failed

# 에러전문 PS D:\dev\Repositiory\Sandbox\C\Makefile_test> mingw32-make clean rm -f *.o\ process_begin: CreateProcess(NULL, rm -f *.o, ...) failed. make (e=2): . Makefile:21: recipe for target 'clean' failed mingw32-make: *** [clean] Error 2 # 해결방법 현재 사용하는 쉘이 뭔지 확인해보자... Powershell -> Windows Bash -> Linux Powershell에서는 rm 명령어를 "-rf"와 같은 플래그와 함께 사용할 수 없다.

C

[Java] error: unmappable character (0xEC) for encoding x-windows-949 오류

# 에러 전문 Main.java:14: error: unmappable character (0xED) for encoding x-windows-949 int n = Integer.parseInt(br.readLine()); // ?븳湲? 二쇱꽍 ^ Main.java:14: error: unmappable character (0x80) for encoding x-windows-949 int n = Integer.parseInt(br.readLine()); // ?븳湲? 二쇱꽍 ^ Main.java:18: error: unmappable character (0xED) for encoding x-windows-949 while (n != 0) { // ?븳湲? 二쇱꽍 ^ Main.java:18: error: ..

C

[ vscode - JAVA ] Java 11 or more recent is required to run the Java extension 에러

vscode 실행시 마다 아래와 같이 Configure Java Runtime 설정 창이 계속 뜬다. # 에러 전문 Java 11 or more recent is required to run the Java extension. Please download and install a recent JDK. You can still compile your projects with older JDKs by configuring 'java.configuration.runtimes' # 해결하기 vscode에서는 더이상 Java 8 버전을 지원하지 않으므로, Java 11 버전 이상의 JDK를 설치해야 한다. Java 11을 설치한다면, 으로 설치 후, 화면 좌상단 File -> Preferences -> Setti..

C

Kotlin - retrofit API <-> NodeJS 서버 데이터 전송시 서버가 빈 객체를 받는 문제

NodeJS의 body parser 설정을 고쳐 해결 코틀린 retrofit API로 HashMap 객체 POST 전송 Retrofit Interface.kt @POST("/") @Headers("accept: application/json", "content-type: application/json") fun postRequest( @Body params: Map ): Call MainActivity.kt // Hashmap 객체 생성 val map = HashMap() map.put("id", "0") map.put("pwd", "123") map.put("nick", "surimi") // 서버로 전송 server.postRequest(map).enqueue((object : Callback { o..

C

[React] index.js:1 Warning: Each child in a list should have a unique "key" prop.

# 에러 전문 index.js:1 Warning: Each child in a list should have a unique "key" prop. Check the render method of `App`. See https://reactjs.org/link/warning-keys for more information. at Potato (http://localhost:3000/static/js/main.chunk.js:25:3) at App React의 모든 Component는 고유한 id를 가져야 한다!! var arr = ['Sushi', 'potato', 'Compost', 'Burger']; function renderFood(dish) { return } 호출하려는 function의 key={..

C

[ VSCode - terminal ] .\activate.ps1 : 이 시스템에서 스크립트를 실행할 수 없으므로 ~~~ \activate.ps1 파일을 로드할 수 없습니다.

# 에러 전문 \activate.ps1 : 이 시스템에서 스크립트를 실행할 수 없으므로 \venv\Scripts\activate.ps1 파일을 로드할 수 없습니다. # 해결방법 Powershell을 관리자 권한으로 실행 Set-ExecutionPolicy Unrestricted 입력 후 Y 이제 vscode에서 teminal을 돌려도 에러가 뜨지 않는다. # 참조 https://stackoverflow.com/a/18713789

C

[ Python ] File "<stdin>", line 1 SyntaxError: invalid syntax

#에러 전문 >>> set PYTHONIOENCODING=utf8 ; if ($?) { py } "d:\dev\Repositiory\Python-prac\py_basic\prac3.py" File "", line 1 set PYTHONIOENCODING=utf8 ; if ($?) { py } "d:\dev\Repositiory\Python-prac\py_basic\prac3.py" ^ SyntaxError: invalid syntax # 해결법 code-runner 실행 설정에서 "code-runner.executorMap": { "python": "set PYTHONIOENCODING=utf8 | py" } 파이썬 항목을 이렇게 바꿔주면 된다. # 에러 발생이유 이미 실행되어있는 파이썬 인터프리터 내부..

C

[ MYSQL ] * is not valid at this position for this server version

# 에러 예시 "SELECT" is not valid at this position for this server version, expecting ~~~~ "DROP" is not valid at this position for this server version, expecting ~~~~ "CREATE" is not valid at this position for this server version, expecting ~~~~ # 해결 주로 문법이 맞지않는 query를 입력했을때 나오는 에러. # 관련 문서 stackoverflow.com/questions/53471882/mysql-workbench-reports-is-not-valid-at-this-position-for-this-server-ve..