GithubHelp home page GithubHelp logo

Comments (12)

rbrusu avatar rbrusu commented on May 26, 2024

Can you please submit a patch through the pull request system?

from pcl.

jspricke avatar jspricke commented on May 26, 2024

Which MSVC is this? We are using %z all over the place so I doubt we can fix this easily. Some information on this: http://stackoverflow.com/questions/174612/cross-platform-format-string-for-variables-of-type-size-t

from pcl.

aichim avatar aichim commented on May 26, 2024

Ping, @strontium5 - could you reply to @jspricke 's question please? We have been using %zu for quite a while and never heard complaints. You might be using an exotically old version of MSVC.

from pcl.

rbrusu avatar rbrusu commented on May 26, 2024

I'm pretty sure now that %zu is not supported by MSVC.

from pcl.

bouffa avatar bouffa commented on May 26, 2024

I confirm that MSVC doesn't support %zu modifier which is part of C99 (MSVC doesn't support C99). A while ago, I've modified several %zu with %lu in PCL sources..

from pcl.

rbrusu avatar rbrusu commented on May 26, 2024

Does %lu have the same behavior with GCC/CLANG? If so, sed to the rescue for changing all PCL lines from one to the other.

from pcl.

strontium5 avatar strontium5 commented on May 26, 2024

Sorry for my late reply, but I was using the MSVC in visual studio 2010

On Tue, Jul 9, 2013 at 11:52 AM, aichim [email protected] wrote:

Ping, @strontium5 https://github.com/strontium5 - could you reply to
@jspricke https://github.com/jspricke 's question please? We have been
using %zu for quite a while and never heard complaints. You might be using
an exotically old version of MSVC.


Reply to this email directly or view it on GitHubhttps://github.com//issues/146#issuecomment-20684041
.

from pcl.

rbrusu avatar rbrusu commented on May 26, 2024

Is there an action item for this issue? If %zu is not supported by MSVC, then we need a patch/pull request in order to solve it.

from pcl.

rbrusu avatar rbrusu commented on May 26, 2024

Any follow up to this issue?

from pcl.

rbrusu avatar rbrusu commented on May 26, 2024

@bouffa is that an older version of MSVC? I believe newer ones handle it just fine, otherwise we would have heard more bug reports.

from pcl.

rbrusu avatar rbrusu commented on May 26, 2024

Closed due to lack of activity.

from pcl.

yangyanli avatar yangyanli commented on May 26, 2024

Well, I confirm that %zu doesn't work on VS2012. And this is very annoying...

Can someone confirm whether %lu works for other platforms?

from pcl.

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.