desire to enhance this question? include details and clear up the trouble by editing and enhancing thins post.

closeup of the door 4 years ago.




You are watching: C++ no such file or directory

hello ns have a trouble in linux terminal line. Therefore ns do the efforts compiling a record to .o choose this

gcc -c palindrome.cand also the error ins

palindrome.c:2:21: fatatogether error: reverse.h: No such File or directorycompilati~ above terminated.the File reverse.h Indeed is in ns catalog Because i copied whatever native lab2 brochure to lAb 3. For this reason why ins it saying that? thanks for the help

cscstuff
ubuntu:~/inlab2$ lns -lfull 32-rwxrwxr-x 1 cscstuff cscingredient 8784 Ocns 1 08:26 main1-rw-rw-r-- 1 cscingredient cscingredient 338 Oct 1 08:20 main1.c-rw-rw-r-- 1 cscstuff cscstuff 1888 Oct 1 08:24 main1.o-rw-rw-r-- 1 cscingredient cscingredient 204 Ocns 1 08:26 reverse.c-rw-rw-r-- 1 cscingredient cscstuff 84 Ocns 1 08:19 reverse.h-rw-rw-r-- 1 cscingredient cscingredient 1472 Ocns 1 08:26 reverse.ocscstuff
ubuntu:~/inlab3$ ls -ltotal 16drwxrwxr-x 2 cscingredient cscstuff 4096 Oct 1 08:33 inlab2-rw-rw-r-- 1 cscstuff cscingredient 247 Ocns 1 09:21 main2.c-rw-rw-r-- 1 cscingredient cscstuff 297 Oct 15 11:01 palindrome.c-rw-rw-r-- 1 cscingredient cscstuff 51 Ocns 1 08:34 palindrome.hcscstuff
ubuntu:~/inlab3$ gcc -c palindrome.cpalindrome.c:2:21: fatal error: reverse.h: No such Documents or directorycompilation terminated.cscstuff


*

from inlab3 either

add -I../inlab2 come compiler (e.g. Gcc -I../inlab2 -c palindrome.c, thins will teltogether gcc to look at in ../inlab2 because that ns header file)

usage #incorporate "../inlab2/reverse.h" in incorporate line (this will certainly give loved one course because that ns header file)

copy from inlab2 cns ../inlab2/reverse.h . (this will certainly do a copy of the header File easily accessible in inlab3)


*

*

no the price you're lookinns for? browse other inquiries tagged terminal compilinns gcc or questioning your own question.


GNU Octave compilatitop top falls short via libinterp/.libs/liboctinterp.so: unidentified reference to `Magick::*
*

site design / logo design © 2021 stack Exreadjust Inc; user contribution a license is granted under cc by-sa. Rev2021.11.10.40715




See more: Trident Of The Seas Vs Iban Staff, Iban'S Staff (U)

Linux is a registered tradenote of Linus Torvalds. startupcuba.org ins a registered tradenote of ns open up Group. Thins website is not affiliated via Linuns Torvaldns or the open up group in any kind of way.

your privacy

by click “expropriate all cookies”, friend agree stack Exchange can save cookies ~ above your device and discshed information in accordance via our Cookie Policy.