CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Is this a bug in wmake? (https://www.cfd-online.com/Forums/openfoam-bugs/231854-bug-wmake.html)

kryptomatrix November 20, 2020 10:26

Is this a bug in wmake?
 
If I compile the wmake application below, I get the warning/error:


could not open file other.C for source file wtest.C due to No such file or directory


Another problem is that if I change other.C and run wmake again, it does not get recompiled unless I run wclean.





File structure:



├── other.C
├── outer.C
└── wtest
├── Make
│ ├── files
│ └── options
└── wtest.C


File contents



other.C: empty file


outer.C:
#include "other.C"


wtest.C:

#include "../outer.C"
int main(){}


options: empty file



files:

wtest.C
EXE = wtest

bestucan November 20, 2020 22:11

those are not bugs.
both of the 'bugs' could be changed by modify 'Make/files' and 'Make/options'


'wmake' is a script to call 'make'. You could find the way by figure out how 'makefile' works.

hjasak November 21, 2020 08:05

Not a bug. Do

#include “outer.C”


All times are GMT -4. The time now is 11:42.