Use the EclipseCDT plug-in ubuntu To Write multi-threaded programs
Source: Internet
Author: User
Use the EclipseCDT plug-in ubuntu To Write multi-threaded programs-general Linux technology-Linux programming and kernel information. The following is a detailed description. The biggest headache for writing C \ C ++ programs in linux is that there is no familiar development software, which is as convenient as visual studio in Windows.
Since the course needs to be programmed in Linux, I decided to install the CDT plug-in for Eclipse in ubuntu. the procedure is simple. Download the plug-in package (www. eclipse. rog/cdt) unzip org.eclipse.cdt-3.1.2-linux.x86.tar.gz] files to/usr/lib/eclipse plugins and features respectively.
However, when writing a multi-threaded program, the following error will be reported: undefined reference to 'pthread _ create'
In this case, you only need to make a simple configuration. The solution is as follows:
Right-click the project and choose Properties> (set as shown in)
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.twt.edu.cn/photo/user/s/sadman1/2008_03/1206281572_d3n8d7_big.JPG'); ">
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service