Comments (9)
I tried this and couldn't reproduce on my Ubuntu 18.10. I'm not experienced with autotools, maybe @tcanich will have an idea.
from datetime-fortran.
Weird... Have just tried on my Mac -- the same result. I did:
wget https://github.com/wavebitscientific/datetime-fortran/releases/download/v1.6.0/datetime-fortran-1.6.0.tar.gz
FC=ifort ./configure --prefix=/opt/datetime-fortran-1.6.0
make
make check
sudo make install
All went smoothly but there is only datetime_module.mod in the include folder. So I had to cp other *.mod files from src/lib/ again. I'm not an expert in autotools as well. That's why I couldn't fix it by myself.
Anyway, it's not a big deal :)
Thanx again!
from datetime-fortran.
Is there anything in your lib folder, /opt/datetime-fortran-1.6.0/lib
?
from datetime-fortran.
Yes:
ls /opt/datetime-fortran-1.6.0/lib/
libdatetime.a pkgconfig
from datetime-fortran.
from datetime-fortran.
Thanks, Tom, I will try it.
Alexander: I'm sorry, I read your original message but somehow my brain went somewhere else. I also get only datetime_module.mod in the include directory. However, I struggle reproducing this:
That (datetime_module.mod) is not enough to link datetime.
Can you give an example program that needs any other module than datetime_module.mod?
from datetime-fortran.
Thank you, Tom!
Milan, It was early morning when I was writing that. Apologize :)
I meant that having the datetime_module.mod only in the include folder makes compiling FORTRAN code with use datetime_module
impossible.
But if I copy all *.mod files from src/lib to the include -- everything compiles and works perfectly.
from datetime-fortran.
Got it, but I'm saying for me I can build with just datetime_module.mod, with gfortran.
I just tried with ifort and indeed I can't, just like you. This looks like an Intel-specific issue, however from the top of my head, I don't know whether the GNU or the Intel behavior is standard conforming. I will do some research.
Anyway, for now, it doesn't hurt for now to copy all .mod files to make ifort happy.
from datetime-fortran.
Agreed. It doesn't ;)
Maybe it's related to shared/dynamic compilation but I couldn't find this option in configure.
from datetime-fortran.
Related Issues (20)
- Document building with cmake and autotools HOT 1
- Define output (write) methods for datetime and timedelta instances HOT 1
- strptime does not handle errors HOT 1
- Cannot set seconds or others of timedelta HOT 3
- strptime does not zero tm struct before calling c_strptime HOT 1
- Error invoking datetime constructor with ifort-17.0.5 HOT 10
- Very strange (possibly compiler) bug with date2num HOT 3
- incorrect literal with REAL64 kind HOT 8
- add support for mingw HOT 1
- Can't build tests on win-ifort. Fails on linker with strptime HOT 4
- "undefined reference" when using datetime-fortran HOT 7
- Dealing with huge timedelta values HOT 5
- Generic procedure including a sub-class of TimeDelta HOT 3
- Bug in function now() HOT 2
- Strptime Undefined Reference Error HOT 7
- Hour comparison in num2date is incorrect HOT 2
- Function that ingests ISO format and returns datetime? HOT 1
- CMake uses different compiler flags to autotools HOT 6
- Processing of `secondsSinceEpoch` and its reverse processing routine. HOT 3
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 datetime-fortran.