-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSVC compatability issue with %z format specifier in oni2pcd sample #146
Comments
Can you please submit a patch through the pull request system? |
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 |
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. |
I'm pretty sure now that %zu is not supported by MSVC. |
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.. |
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. |
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 notifications@github.com wrote:
|
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. |
Any follow up to this issue? |
@bouffa is that an older version of MSVC? I believe newer ones handle it just fine, otherwise we would have heard more bug reports. |
Closed due to lack of activity. |
Well, I confirm that %zu doesn't work on VS2012. And this is very annoying... Can someone confirm whether %lu works for other platforms? |
In line 68 of pcl/tools/oni2pcd.cpp, the %zu format specifier is not compatible with the MSVC compiler. Changing to %lu resolves the issue for the MSVC compiler.
The text was updated successfully, but these errors were encountered: