Comments (5)
from fobis.
Hi Jacob,
I am trying to implement this feature, but I am failing building a working example (I always link libraries with full path). Can you provide examples of commands for liking with -L(-l)? Both GNU gfotran and Intel ifort seem to support the same syntax. For example, let us assume the following setup:
├── build
│ ├── mod
│ └── obj
│ └── cumbersome.o
├── fobos
├── precompiled
│ ├── mod
│ │ └── nested_1.mod
│ └── obj
│ └── first_dep.o
├── README.md
└── src
└── cumbersome.f90
Which commad I should use to build without the full path precompiled/obj/first_dep.o
?
With both gfortran and ifort I have tried:
ifort build/obj/cumbersome.o -Lprecompiled/obj first_dep.o -o build/Cumbersome
but I have failed
ifort: error #10236: File not found: 'first_dep.o'
from fobis.
I think it only works for libraries (not .o
files). Here's an example (with gfortran...but I think ifort might be the same).
├── build
├── lib
│ └── libblah.a
└── src
└── cumbersome.f90
To compile, you would use:
gfortran -lblah -L./lib ./src/cumbersome.f90 -o build/Cumbersome
Note that the library is named libblah.a
, but you only use -lblah
in the call (the compiler puts the lib
prefix and .a
suffix. This is weird but that's what it does.
from fobis.
Thanks, I will try it monday.
Have a good weekend.
from fobis.
Dear Jacob,
your feature should be implemented. I have pushed the new release on both this github repo and PyPi, thus you can install via pip
or manually.
I have added some more documentations:
- https://github.com/szaghi/FoBiS/wiki/ChangeLog
- https://github.com/szaghi/FoBiS/wiki/Linking-external-libraries
- https://github.com/szaghi/FoBiS/tree/master/examples/cumbersome_dependency_program_precompiled
- https://github.com/szaghi/FoBiS/tree/master/examples/cumbersome_dependency_program_external_libs
Please, let me know of any bugs you will find.
P.S. Now that FoBiS.py is on PyPi I am testing some nice (IMHO) Travis CI "extensions" for Fortran programs... maybe you will interested on that.
from fobis.
Related Issues (20)
- Using the preprocessor HOT 2
- Python 3 crash HOT 9
- NAG compiler support HOT 12
- Multiple templates in one mode HOT 1
- configparser.InterpolationSyntaxError: '%' must be followed by '%' HOT 4
- encoding error with Python3.6 (depending on the building env) when building `forbear` HOT 4
- Auto dependency does not include all files HOT 13
- Windows compatible encoding HOT 16
- Failed compilation with python3 HOT 13
- `-J mod` leads to failed compilation using gfortran
- Build not working on multiple PCs HOT 3
- Failing to find correct dependency HOT 4
- argument -compiler: invalid lower value: 'intel' HOT 12
- Add future module as PyPi dependency HOT 11
- [Feature request] Optional pass AR and RANLIB implementation
- Coverage crash HOT 2
- Typo: -oqpenmp HOT 1
- Compilation Issue with forbear library
- release new version on pypi for nvfortran? HOT 2
- Support py3.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fobis.