Giter VIP home page Giter VIP logo

Comments (7)

milancurcic avatar milancurcic commented on July 23, 2024

Hi Doug,

Not sure what's going on here. I can compile and link the example without issues on my system (Ubuntu).

This is a linker error so your compile step works. It seems like you have a libdatetime.a (otherwise the linker would complain about it) but it can't find the strptime method in there. Just for a sanity check, what is the output of nm libdatetime.a | grep __mod_datetime_MOD_strptime for you? You should get something like 0000000000000346 T __mod_datetime_MOD_strptime is libdatetime.a was created correctly.

Unfortunately I have zero experience with MinGW, so I don't know if this could be related to it.

from datetime-fortran.

dcdenu4 avatar dcdenu4 commented on July 23, 2024

Hey, thanks for the quick reply. Running the sanity command check you mentioned gives:

0000000000002290 T __mod_datetime_MOD_strptime

I think the issue is related to using WSL to build / compile datetime-fortran, but then switching back over to using MinGW to link the library to my project. Unfortunately we're using MinGW and Windows across the project.

from datetime-fortran.

VinniDoddu avatar VinniDoddu commented on July 23, 2024

Hi,
is there an easy solution to get datetime-fortran working using mingw in windows ?
thanks

from datetime-fortran.

milancurcic avatar milancurcic commented on July 23, 2024

Hi @VinniDoddu,

Unfortunately, I haven't learned anything new since the start of this issue, and still have zero experience with MinGW. From reviewing the issue again, my suspicion is that on MinGW the linker is not able to find strptime. This should be in the C standard library inside time.h. I don't know if on MinGW this function is not provided, or perhaps defined in some other place that is not in default include and link path.

from datetime-fortran.

milancurcic avatar milancurcic commented on July 23, 2024

@scivision just added a fix for this which is now in master.

@dcdenu4 @VinniDoddu Can you try it and see if it works?

from datetime-fortran.

milancurcic avatar milancurcic commented on July 23, 2024

Closing. If the issue persists, please reopen.

from datetime-fortran.

dcdenu4 avatar dcdenu4 commented on July 23, 2024

@scivision just added a fix for this which is now in master.

@dcdenu4 VinniDoddu Can you try it and see if it works?

Hey, sorry I missed this. I'm no longer on the project that pertained to this issue and don't have access to the codebase... Thanks for the work and reaching out!

from datetime-fortran.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.