Giter Club home page Giter Club logo

Comments (11)

djowel avatar djowel commented on May 18, 2024

It is used indirectly by one boost library. I forgot which. Try dropping it and see the linker errors.

from elements.

Xeverous avatar Xeverous commented on May 18, 2024

No linker errors after removing boost regex. Also, if some library is using boost regex, then it is a bug in that library's CMake files that it does not correctly expose all build requirements. One of modern CMake principles is that you should not care about transitive requirements.

from elements.

djowel avatar djowel commented on May 18, 2024

No linker errors after removing boost regex. Also, if some library is using boost regex, then it is a bug in that library's CMake files that it does not correctly expose all build requirements. One of modern CMake principles is that you should not care about transitive requirements.

Ah I just noticed that in recent versions of Boost, BTW. Which version are you using?

from elements.

djowel avatar djowel commented on May 18, 2024

No linker errors after removing boost regex. Also, if some library is using boost regex, then it is a bug in that library's CMake files that it does not correctly expose all build requirements. One of modern CMake principles is that you should not care about transitive requirements.

Ah I just noticed that in recent versions of Boost, BTW. Which version are you using?

OK, that change was introduced in 7bbec72 which coincides with working in Windows, so the linker errors probably happened with Visual Studio 2019 and Boost 1.71

from elements.

djowel avatar djowel commented on May 18, 2024

No linker errors after removing boost regex. Also, if some library is using boost regex, then it is a bug in that library's CMake files that it does not correctly expose all build requirements. One of modern CMake principles is that you should not care about transitive requirements.

Ah I just noticed that in recent versions of Boost, BTW. Which version are you using?

OK, that change was introduced in 7bbec72 which coincides with working in Windows, so the linker errors probably happened with Visual Studio 2019 and Boost 1.71

@Xeverous one thing that would definitely help is if we could have CI working, so we can at least check building on different platforms. I am also looking at ways to test. I'm a test-driven person and I find it awkward that I do not have tests. The only library I wrote without it. Testing GUIs and graphics is kinda tricky, but I probably have some ideas.

from elements.

Xeverous avatar Xeverous commented on May 18, 2024

So far I was building elements using various MinGW versions and boost 1.69 - 1.72. No problems. If you don't use date_time's string-related methods you can also drop this once - without them boost date time library is header-only.

from elements.

djowel avatar djowel commented on May 18, 2024

So far I was building elements using various MinGW versions and boost 1.69 - 1.72. No problems. If you don't use date_time's string-related methods you can also drop this once - without them boost date time library is header-only.

Yeah, I know... I just don't have time to investigate.

Feel free to investigate what's happening with VS2019. It's probably a cmake thing. I can't remove the dependency now due to this issue. Try to follow the install procedure here: http://cycfi.github.io/elements/setup and see what you can do to remove the deps.

from elements.

Xeverous avatar Xeverous commented on May 18, 2024

Elements already require building some parts boost and the GCC distro I currently use has a lot of library prebuilds (including boost) so I save a lot of time thanks to it. Don't expect me to check this soon. Linking unnecessary things is not a high-prority issue for me (more of a correctness issue) and if I see something is unneeded, I can drop it anyway (like I already patch scaling).

from elements.

djowel avatar djowel commented on May 18, 2024

Linking unnecessary things is not a high-prority issue for me

And same for me. There are a lot more important things to do.

from elements.

Xeverous avatar Xeverous commented on May 18, 2024

This is now outdated. We have actually dropped all compiled boost libraries.

from elements.

djowel avatar djowel commented on May 18, 2024

This is now outdated. We have actually dropped all compiled boost libraries.

Yes we did. It took a while for me to figure out what's pulling all those libraries. It wasn't a high priority back then, but it stuck out like a sore thumb.

from elements.

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.