fatal error: no such file or directory-what may cause wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear gcc programers:

  Someone suggest me to include Array.cpp in my Array.h file
I follow that suggestion
then at compile, it response different errors .
---------------------
eric@eric-laptop:~/CppPrimer3$ g++ Array.cpp pg52.cpp
In file included from Array.cpp:3:0:
Array.h:4:21: fatal error: Array.cpp: No such file or directory
compilation terminated.
In file included from pg52.cpp:2:0:
Array.h:4:21: fatal error: Array.cpp: No such file or directory
compilation terminated.
eric@eric-laptop:~/CppPrimer3$ ls
Array.cpp  Exer12_7.cpp  IntArrayRC.cpp  outfile1   pg49.cpp   pg598.cpp
Array.h    IntArray.cpp  IntArrayRC.h    outfile2   pg514.cpp
pg600-1.cpp
ex2-4.cpp  IntArray.h    minn.cpp        p1114.cpp  pg52.cpp
pg600-2.cpp
eric@eric-laptop:~/CppPrimer3$ 
----------------------------------
so why is that(gcc? linker? or anything else?)?
highly appreciate your advice and thanks a lot in advance, Eric



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux