Code Monkey home page Code Monkey logo

Comments (10)

sharkdp avatar sharkdp commented on June 4, 2024

Thank you for reporting this. Which compiler and version are you using?

from dbg-macro.

sharkdp avatar sharkdp commented on June 4, 2024

And how do you call dbg?

from dbg-macro.

dawid-s avatar dawid-s commented on June 4, 2024

I build it on CentoOS 7 with GCC 4.8.5. In order for me to get the error, I don't even need to call it. It is enough that I add the header to the translation unit I want to use it in.

from dbg-macro.

sharkdp avatar sharkdp commented on June 4, 2024

I can reproduce this via https://godbolt.org/

The error seems to appear for GCC versions 4.x. Everything works fine for GCC 5.x and higher.

GCC 5 has been available for over five years now, so I'm not sure if we really need to support GCC 4 as well. If someone wants to work on this, that would be great, but I'm personally not going to look into it.

@dawid-s Thank you for sharing this anyway.

from dbg-macro.

dawid-s avatar dawid-s commented on June 4, 2024

No worries. Thanks for confirming what is the issue. I might just be able to compile with a higher version of the compiler for debugging purposes. Great project btw.

If it comes to versions of compilers, some industries are moving quite slowly, to be honest, only this year we will move to C++ 14 and GCC 6.3.

from dbg-macro.

sharkdp avatar sharkdp commented on June 4, 2024

If it comes to versions of compilers, some industries are moving quite slowly, to be honest, only this year we will move to C++ 14 and GCC 6.3.

You are absolutely right. I have made similar experiences on my own 😄.

Let's keep this issue open for a while in case someone might be able to fix this.

from dbg-macro.

lrosenthol avatar lrosenthol commented on June 4, 2024

Just ran into this myself this morning - so glad that it's being tracked!

from dbg-macro.

sharkdp avatar sharkdp commented on June 4, 2024

I attempted to solve this a few times, but didn't get very far. Any help would be appreciated.

from dbg-macro.

sharkdp avatar sharkdp commented on June 4, 2024

Note: I don't want to completely replace the nice is_detected mechanism with something else just to fix this bug on old GCC versions.

from dbg-macro.

sharkdp avatar sharkdp commented on June 4, 2024

GCC 4 was released in 2005. I think we close this for now. I don't think someone will work on resolving an issue with a compiler that is 18 years old

from dbg-macro.

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.