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

Does order of instructions in make/options matters?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2022, 05:48
Default Does order of instructions in make/options matters?
  #1
New Member
 
Bhimesh Jetty
Join Date: Feb 2022
Posts: 5
Rep Power: 4
BJ_23 is on a distinguished road
Hello Foamers,

I have a basic question regarding how -L$(FOAM_USER_LIBBIN) in make/options works. I herewith attach an example for make/options:

Code:
EXE_INC = \
    -I$(LIB_SRC)/transportModels/compressible/lnInclude \
    -I$(WM_PROJECT_USER_DIR)/src/thermophysicalModels/basic/lnInclude \
    -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
    -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude

LIB_LIBS = \
    -L$(FOAM_USER_LIBBIN) \
    -lcompressibleTransportModels \
    -lfluidThermophysicalModels \
    -lspecie \
    -ltwoPhaseMixture \
    -linterfaceProperties \
    -lfiniteVolume
With the above instructions, I would like to create a shared object named libtwoPhaseMixtureThermo.so in user/platforms/lib. For this compilation, I need to reference libfluidThermophysicalModels.so which is also located in user/platforms/lib. Now the question is how does L$(FOAM_USER_LIBBIN) picks libfluidThermophysicalModels.so from user/platforms/lib as it is defined after -lcompressibleTransportModels in my order of instructions?

Does L$(FOAM_USER_LIBBIN) first picks all available shared objects listed in the make/options from user/platforms/lib and then goes to opt/platforms/lib?

Last edited by BJ_23; April 12, 2022 at 10:19.
BJ_23 is offline   Reply With Quote

Old   April 11, 2022, 20:23
Default
  #2
New Member
 
Join Date: Oct 2021
Posts: 2
Rep Power: 0
brucethemuce is on a distinguished road
The order should not matter, compile and see what errors you get
brucethemuce is offline   Reply With Quote

Reply


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
Order of #include matters for QtCreator gcengineer OpenFOAM Programming & Development 1 November 12, 2019 21:52
1st order vs 2nd order ken FLUENT 8 March 14, 2013 03:43
Unstable flow simpleFoam 2nd order Valle OpenFOAM 0 August 26, 2009 08:12
SECOND ORDER DON'T CONVERGE, WHY?????????? naus FLUENT 10 March 13, 2006 07:21
1st order temporal & 2nd order spatial Prateep Chatterjee FLUENT 0 January 19, 2003 00:31


All times are GMT -4. The time now is 19:20.