CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Is this a bug in wmake?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2020, 10:26
Default Is this a bug in wmake?
  #1
New Member
 
Join Date: Jan 2019
Posts: 4
Rep Power: 7
kryptomatrix is on a distinguished road
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
kryptomatrix is offline   Reply With Quote

Old   November 20, 2020, 22:11
Default
  #2
New Member
 
bestucan's Avatar
 
Tu Can
Join Date: Jul 2017
Location: China
Posts: 16
Rep Power: 8
bestucan is on a distinguished road
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.
bestucan is offline   Reply With Quote

Old   November 21, 2020, 08:05
Default
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Not a bug. Do

#include “outer.C”
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply

Tags
wmake problems


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Not found many .so files when installing OpenFOAM 6 lengjun OpenFOAM Installation 2 December 12, 2022 22:08
OpenFoam 1.6-ext - error ./Allwmake in /src preibie OpenFOAM Installation 14 June 14, 2011 05:57
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 13:28


All times are GMT -4. The time now is 02:30.