Comments (7)
Thank you! Confirmed it works on gcc5
So I guess its now OK to close the issue, @bkaradzic
from imguizmo.
Also, anonymous struct is non-standard thus it fails to compile with some compilers(at least I've confirmed g++5.3.0 cannot compile the code).
http://stackoverflow.com/questions/14248044/are-anonymous-structs-standard-and-really-what-are-they
It would be better to provide accessor method instead of anonymous union/struct.
from imguizmo.
Fixed
eb670e6
from imguizmo.
Thanks! But it still fails...
$ g++-5 ImGuizmo.cpp
ImGuizmo.cpp:188:11: error: 'struct ImGuizmo::matrix_t::<anonymous union>::vect' invalid; an anonymous union can only have non-static data members [-fpermissive]
struct vect
^
$ g++-5 -v
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc5/5.3.0/libexec/gcc/x86_64-apple-darwin15.4.0/5.3.0/lto-wrapper
Target: x86_64-apple-darwin15.4.0
Configured with: ../configure --build=x86_64-apple-darwin15.4.0 --prefix=/usr/local/Cellar/gcc5/5.3.0 --libdir=/usr/local/Cellar/gcc5/5.3.0/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl014 --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --with-pkgversion='Homebrew gcc5 5.3.0' --with-bugurl=https://github.com/Homebrew/homebrew-versions/issues --enable-plugin --disable-nls --enable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
Thread model: posix
gcc version 5.3.0 (Homebrew gcc5 5.3.0)
from imguizmo.
I have no gcc at home.
Please, can you try to replace the union with:
union
{
float m[4][4];
float m16[16];
struct
{
vec_t right, up, dir, position;
} v;
};
And tell me if it compiles. This doesn't give me any error with vc++.
from imguizmo.
anonymous struct in anonymous union. I don't know how this could go wrong :)
from imguizmo.
I've tested with online compilers and it works with the snippet above.
commit : e7f6a42
from imguizmo.
Related Issues (20)
- ImGuizmo scaling issue when position is origin HOT 17
- How can modify the code to achieve this scaling gizmo HOT 4
- Example using ViewManipulate when game's view is represented with a Vector3 and a Quaternion? HOT 1
- Platform independent build system and example? HOT 5
- How to use ImGuizmo in UE5?
- Universal Operation Scale doesn't respect ImGuizmo::IsOver()
- ImGuizmo::IsOver() returns true when should not
- [question] How the mesh editing is implemented?
- Snap for universal transform
- Gizmo Flips Depending on View Angle HOT 1
- Support for Right-Handed Systems HOT 3
- Viewport changing when window is moved HOT 1
- adding the gizmo to a window that was just renamed leads to a crash with asan activated
- no guizmo rendered HOT 1
- Exposure of gContext.mbMouseOver
- Camera parented to Guizmo HOT 1
- Manipulate not working
- Updating operation during an active manipulation has unexpected behaviour.
- Gizmo not showing in custom window ( docking branch ) HOT 5
- Assertion fails for ImVector::operator[](int) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imguizmo.