Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (56 sloc) 1.42 KB

 

 

 

 

 

(C++) 'endl' is not a member of 'std'

 

Compile error.

 

 

 

 

Full error message

 


[C++ Error] Unit1.cpp(3): E2316 'endl' is not a member of 'std'

 

 

 

 

 

Cause

 

IDE: C++ Builder 6.0

Compiler: Borland BCC32.EXE version 6.0.10.157

Project type: Console Application

 


int main() {   std::cout << "Hello world" << std::endl; }

 

 

 

 

 

Solution

 

The compiler was unable to find the definition of std::endl. #include the header file iostream so it does:

 


#include <iostream> int main() {   std::cout << "Hello world" << std::endl; }

 

 

 

 

 

 

You can’t perform that action at this time.