Giter VIP home page Giter VIP logo

Comments (5)

joaoleal avatar joaoleal commented on June 11, 2024

CppadCodegen does not explicitly support Windows mainly because I don't really use it.
Nevertheless, it would be great to have it working.

Regarding your suggestions:

  1. Simple change
  2. Simple change
  3. The third cannot be implemented just by adding size_t since in Linux (64bit) it is a long unsigned int.
    I'll add new overloading for long long int.

This, however, will not be enough to fully support windows.
For instance, the functions in system.hpp will have to be implemented for windows just as they are for Linux/Mac (linux_system.hpp).

from cppadcodegen.

guestieng avatar guestieng commented on June 11, 2024

Yes, that's true, there are a few more changes to make in order to have it working in windows. But particularly with the first two basic issues (see above) respected it's at least a little less cumbersome.
I've got one solution which, I think, is sufficiently stable with VS 2015 and Mingw-w64 (gcc) , and which I can prepare to share once I have a gap. However, so far one little drawback is that this needs a little helper library like dlfcn-win, if one wants to keep it easy and avoid touching all the existing code which handles the created dynamic libraries.

from cppadcodegen.

joaoleal avatar joaoleal commented on June 11, 2024

I've implemented the 3 items.
Can you please check if you can compile it with VS 2015?

What kind of features would you need in the dynamic library handling classes?
If we implement the system.hpp for windows you might get it.

from cppadcodegen.

guestieng avatar guestieng commented on June 11, 2024

Alright, thanks.
These 3 changes are working.
However, to make it compile completely more changes are needed.
As said I can prepare these for sharing once I have another gap.
But it's too cumbersome to post all this here.
What would suit you instead, perhaps a pull request?

from cppadcodegen.

joaoleal avatar joaoleal commented on June 11, 2024

Yes, a pull request would be great.
Travis also supports windows now, we can add it to the platforms being tested.

from cppadcodegen.

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.