S
S
sitev_ru2017-06-16 19:25:11
C++ / C#
sitev_ru, 2017-06-16 19:25:11

Why doesn't make work for another directory?

I have the following project structure:
projects/prj1/src
projects/prj2/src
When I compile the prj2 project and all the sources are here projects/prj2/src - everything works... But if I want to pick up the sources from projects/prj1/src, then an error occurs.
I am perverted in every way, various errors ...
For example, this:

No rule to build target "../prj1/src/file1.o" required for "prj2"

Why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-06-16
@jcmvbkbc

Why is this happening?

Because you are doing something wrong.
Seriously, how do you want us to understand what's going on if you haven't given us any useful information? Makefile show, or something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question