분명히 ide_task_request_t 구조체가 선언된 linux/hdreg.h를 include 했음에도 불구하고 gcc로 컴파일하면 에러가 뜹니다...
에러메시지 ------------------
hpa.h:2: error: syntax error before "ide_task_request_t"
hpa.h:2: warning: no semicolon at end of struct or union
hpa.h:5: error: syntax error before '}' token
-n
' Assumes ``while gets; ...; end'' loop around your program. For example, a simple grep command might be implemented as:
% ruby -n -e "print if /wombat/" *.txt
taskSpawn() 함수는 대략 아래 처럼 사용하는 것으로 알고 있습니다.
int taskSpawn(char *name, int priority, int options, int stackSize, FUNCPTR entryPt, int arg1, int arg2, ...);
그럼.. 문자열을 넘길 수는 없나요? 문자열 주소를 넘기고 싶은데요..
다른 방법은 없을 까요?