Need help
im using code:block at pages. //f.cpp file #include<iostream> int count; extern void write_extern(); int main() { count =5; write_extern(); return (0); } error:1.undefined reference write_extern() 2.id retuened 1 exit status. //f1.cpp #include<iostream> extern int count; using namespace std; void write_extern(void) { cout<<"cout is:"<<cout<<endl; } error:1.undefined count 2.id returned 1 exit status 3.undefined WinMain@l6 i tried to fix with adding #include"f1.cpp" right at the bottom of <iostream> in f.cpp file. f.cpp running n output is 5. then, at file f1.cpp i do the same with adding #include"f.cpp" n not compiling cos it has many error. like keep going to list. i back to my f.cpp file n its still can be compiled n running. how to run both file? thank you so much in advance