|
[Sponsors] |
January 27, 2004, 05:39 |
Help: how to use compiled F90 module
|
#1 |
Guest
Posts: n/a
|
I wrote a F90 module and compile it into a lib. And I want use this lib rather than the source file in another F90 main program.
I added a USE statement in the main program. But compling failed. What shall I do ?? |
|
January 27, 2004, 06:01 |
Re: Help: how to use compiled F90 module
|
#2 |
Guest
Posts: n/a
|
hi quain put the file *.lib into where your prorject is, and complie, try it.
|
|
January 27, 2004, 07:12 |
Re: Help: how to use compiled F90 module
|
#3 |
Guest
Posts: n/a
|
i forget to tell you first insert lib flie inteo your project
|
|
January 27, 2004, 12:42 |
Re: Help: how to use compiled F90 module
|
#4 |
Guest
Posts: n/a
|
You need to link the library in when you compile. Look at your compiler docs to find the flags for linking(usually -l and -L)
|
|
January 27, 2004, 21:35 |
Re: Help: how to use compiled F90 module
|
#5 |
Guest
Posts: n/a
|
Dear cfd student and Peter
thank you very much. With your help, I have managed to make it. With pgf90 compiler, I add the option, "-module <module_dir> -lmymodule -L<lib_dir>", to compile it. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase modeling with population balance module | Pirooz Darabi | FLUENT | 2 | April 28, 2015 08:22 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |
Makefile for f90 under unix | Jinwon | Main CFD Forum | 1 | September 22, 2007 06:10 |
Using compiled UDF:s in different Fluent versions | S H | FLUENT | 1 | September 12, 2007 04:40 |
Lamboot trouble | r2d2 | OpenFOAM Installation | 4 | October 17, 2005 05:27 |