Skip to content
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

example.hpp: Where is the namespace rs2 included? #3187

Closed
HippoEug opened this issue Feb 1, 2019 · 5 comments
Closed

example.hpp: Where is the namespace rs2 included? #3187

HippoEug opened this issue Feb 1, 2019 · 5 comments

Comments

@HippoEug
Copy link

HippoEug commented Feb 1, 2019

Just a quick and simple question regarding the example.hpp file that encapsulates OpenGL rendering and window management functions.

All I see is:

#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>

#include "../third-party/stb_easy_font.h"

with no

#include <librealsense\rs.hpp>

How is it possible that rs2::frameset& frames or rs2::video_frame& frame can still be compiled and called without any errors? I am just trying to learn more and understand more, any help is much appreciated. Thank you :)

@lramati
Copy link
Contributor

lramati commented Feb 1, 2019 via email

@RealSenseCustomerSupport
Copy link
Collaborator


Hi HippoEug,

As Iramati pointed out, rs.hpp file is included before example.hpp file in each example, which will not cause compiler complain.
If you switch the order of the .hpp files, there should be errors flying around/

Thanks!

@RealSenseCustomerSupport
Copy link
Collaborator


Hi HippoEug,

If there is nothing else, this one will be closed soon.

Thanks!

@dorodnic
Copy link
Contributor

@RealSenseCustomerSupport - please do not close issues tagged with either bug or enhancement labels.

dorodnic added a commit to dorodnic/librealsense that referenced this issue Feb 24, 2019
@dorodnic dorodnic mentioned this issue Feb 24, 2019
@dorodnic
Copy link
Contributor

dorodnic commented Mar 6, 2019

Resolved in v2.19.0

@dorodnic dorodnic closed this as completed Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants