고객사의 요청에 따라 자사의 X Module Driver를 껐다 켰다 하는 프로그램을 작성했다. #include #include #include #include int main() { int loop, num_devices; XDevice *device; char **extensions; Display *dpy; XDeviceInfo *devices; int digi_id; int onoff; //1 : on 2 : off XDeviceEnableControl xDeviceEnableControl; dpy = XOpenDisplay(NULL); devices = XListInputDevices(dpy, &num_devices); for(loop = 0;loop < num_devices;loop++) { ..
코딩하는 중에 에 있는 XListInputDevices를 사용해야하는데 컴파일 하다보니 자꾸 링킹에서 에러가 난다. undefined reference to 'XListInputDevices' 라고. 현재 gcc컴파일 옵션은 offX: offX.c gcc -O3 -Wall -lX11 -o $@ $< 였다. X11을 추가했는데 왜 되지 않을까 고민고민하다가 구글링을 했는데 다음과 같은게 나오더라 /usr/lib 내에서 strings -f libX* |grep XListInputDevices 해주니 XListInputDevices가 사용된 라이브러리 (a파일과 so파일)이 검색되더라. 만약 X관련된 라이브러리가 아니라면 /usr/lib 내에서 strings -f lib* |grep [사용된함수이름] 이렇게 ..
- Total
- Today
- Yesterday
- jni강좌
- Troubleshooting
- database
- 리눅스
- Visual C++
- android
- driver
- NDK
- 드라이버
- Quiz
- API
- winapi
- db
- gcc
- source
- C
- kering
- jni
- 프로그래밍
- MFC
- linux
- algorithm
- Cloud
- it
- java
- Python
- AWS
- 음악
- 안드로이드
- C++
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |