- In Sublime Text 2, go to "Preferences -> Browse packages..".
- Inside C++ directory, find the "C++.sublime-build" and open it.
- Use the following:
{
"cmd": ["g++", "${file}", "-pthread","-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[{
"name": "Run",
"cmd": ["bash", "-c", "g++ '${file}' -pthread -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]
}]
}
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Thursday, December 26, 2013
Add -pthread flag for C++ build in Sublime Text 2
Wednesday, August 7, 2013
Linux: Kernel programming - Webcam driver
- This project is part of the Linux System programming course @ MTA-
The project consists from the following parts:
- Kernel driver that acts like a web cam driver.
- "Feeder" that feeds frames to the kernel driver.
- Frame grabber that grabs frames and display them at NTSC. Manage time/delays using the kernel driver.
- Lock reads/writes in the kernel driver using wait queues.
Subscribe to:
Posts (Atom)
