cout and Endl error when eclipse develops C + +

Source: Internet
Author: User

1.Symbol ' cout ' could not being resolved, select Kepler version number will not error.

2. Download GDB,

./configure

Make

sudo make install

3. Configuring GDB (Mac version number) in Eclipse

Because debugging directly with GDB, there will be no permissions to the situation. So we need to make a keychain to GDB.

Open Keychain Interview

Click Keychain Access in the upper-left corner of the screen, click: Keychain Access – Certificate Assistant--Create a certificate

For example, with:

According to the configuration:

Select code signing and let me override these default values

Always click Continue, know the location of the page created, change "login" to "system".

Click Finish.

To the Keychain Access screen, select System and my certificates, respectively. Double-click Gdb-certificate, select Always Trust

Recall to the terminal interface, enter the following command:

sudo codesign-s gdb-certificate/usr/local/bin/gdb


Configure GDB in Debug configuration, such as the following:

Change GDB to/usr/local/bin/gdb, so you find GDB

Then you will be able to debug normally, the first time when debugging to enter the administrator account. This problem can also be solved. I'm just not going to go on.


cout and Endl error when eclipse develops C + +

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.