C ++ error set: Expected unqualified-ID before 'using'

Source: Internet
Author: User

 

Today I wrote an occi C ++ProgramThe result is an inexplicable error after compilation. The information is as follows:

G ++-C tdbpro. cpp-I/u01/Oracle/rdbms/public-I ./
Tdbpro. cpp: 3: Error: Expected unqualified-ID before 'using'

 

The first line of tdbpro. cppCodeContains the header file. The second row is empty, and the third row is the using namespace STD:

# Include "tdbpro. H"

 

Using namespace STD;

 

 

At first, I thought it was a problem to upload FTP files from windows to Linux. I directly went to Linux and used VI to check the source file. Finally, I found that the class defined in the header file contains no extra points:

 

Class xxxx

{

...

}; // This is the semicolon

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.