Skip to content

Comments

fix compilation error of ray tracing overview code#6

Open
jaxvanyang wants to merge 1 commit intoscratchapixel:mainfrom
jaxvanyang:jax/fix
Open

fix compilation error of ray tracing overview code#6
jaxvanyang wants to merge 1 commit intoscratchapixel:mainfrom
jaxvanyang:jax/fix

Conversation

@jaxvanyang
Copy link

@jaxvanyang jaxvanyang commented Jul 25, 2024

Tested with GCC 14.1.1, the following command in the comments won't compile:

c++ -o whitted whitted.cpp -std=c++11 -O3

After adding the two headers, it compiles.

Because memcpy() should be included from <cstring>, and numeric_limits is not
available by default when using -std=c++11.

memcpy() should be included from <cstring>, and numeric_limits is not
available by default when using -std=c++11.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant