Coding Spirit

一位程序员,比较帅的那种

The solution for this issue is very sample, add #ifdef __cplusplus extern “C” in your C header files. I have seen a lots of C header files with this code, I also know that those codes will help C code compatible with C++ code, but I had never try to dig in to find out why those codes works until few weeks ago I was trying to call a lib written by C but lib headers didn’t surround with #ifdef __cplusplus extern “C”.(Shame on me) This post will tell you why.

Read more »

在大学的时候就一直用gdb + gdbserver 来远程调试C++, 前年开始用VS Code后在板上部署程序后配合VS Code调试更是爽到不行(根本停不下来),有种本地开发的感觉, 再也不用在蛋疼的GDB里面敲‘b’ ‘r’ ‘c’, 哈哈。
最近的项目对adb的支持非常不错,usb上传下载速度比ssh不知道高到哪里去了。今天突然想到之前写Android app的时候都能通过usb和adb进行调试, 现在在Linux下调C++应该也可以通过usb+adb实现, 为什么不试一下呢?

Read more »

This post will give a simple introduction to Linux kernel module(Part III.).

Linux kernel module简介(三)

Read more »

现在blog支持使用Github帐号评论啦!
You can use your github account to add comments now!

This post will give a simple introduction to Linux kernel module(Part II.).

Linux kernel module简介(二)

Read more »

This post will give a simple introduction to Linux kernel module(Part I.).

Linux kernel module简介(一)

Read more »
0%