g++ codice.cpp -L dependencies \lib -lpq -o codice

Jan 24, 2021 at 4:52pm
I use PostgreSQL.
I write in the terminal:

g++ codice.cpp -L dependencies\lib -lpq -o codice

but I have this:
g++: error: codice.cpp: No such file or directory

The file codice.cpp is in the directory where is dependencies but nothing, it appears always "g++: error: codice.cpp: No such file or directory"

Can you help me to resolve?
Last edited on Jan 24, 2021 at 4:54pm
Jan 24, 2021 at 5:17pm
What does ls print?

..or dir, if vanilla Windows
Last edited on Jan 24, 2021 at 5:19pm
Topic archived. No new replies allowed.