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

build error with actual vsg no matching function for call to 'vsg::FrameStamp::FrameStamp(...) #53

Open
rhabacker opened this issue Mar 20, 2024 · 0 comments · May be fixed by #54
Open

Comments

@rhabacker
Copy link
Contributor

With actual vsg source git commit 2158f09 and mingw gcc13 compiler I get the following build errors:

[   46s] cd /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/build/vsgvr && /usr/bin/x86_64-w64-mingw32-g++ -DVSGVR_DECLSPEC="__declspec(dllexport)" -DVSG_SHARED_LIBRARY -Dvsgvr_EXPORTS @CMakeFiles/vsgvr.dir/includes_CXX.rsp -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -O2 -g -DNDEBUG -std=gnu++17 -Wall -Wparentheses -Wno-long-long -Wno-import -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wmaybe-uninitialized -Wshadow -Wunused -Wno-misleading-indentation -Wextra -Wl,--enable-stdcall-fixup -MD -MT vsgvr/CMakeFiles/vsgvr.dir/src/vsgvr/app/Viewer.cpp.obj -MF CMakeFiles/vsgvr.dir/src/vsgvr/app/Viewer.cpp.obj.d -o CMakeFiles/vsgvr.dir/src/vsgvr/app/Viewer.cpp.obj -c /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/vsgvr/src/vsgvr/app/Viewer.cpp
[   46s] In file included from /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/vsgvr/include/vsgvr/app/Viewer.h:24,
[   46s]                  from /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/vsgvr/src/vsgvr/app/Viewer.cpp:22:
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/core/Inherit.h: In instantiation of 'static vsg::ref_ptr<R> vsg::Inherit<ParentClass, Subclass>::create(Args&& ...) [with Args = {std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long long int, std::ratio<1, 1000000000> > >&, int}; ParentClass = vsg::Object; Subclass = vsg::FrameStamp]':
[   46s] /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/vsgvr/src/vsgvr/app/Viewer.cpp:131:44:   required from here
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/core/Inherit.h:37:38: error: no matching function for call to 'vsg::FrameStamp::FrameStamp(std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long long int, std::ratio<1, 1000000000> > >&, int)'
[   46s]    37 |             return ref_ptr<Subclass>(new Subclass(std::forward<Args>(args)...));
[   46s]       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   46s] In file included from /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/vsgvr/include/vsgvr/app/Viewer.h:43:
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:26:9: note: candidate: 'vsg::FrameStamp::FrameStamp(vsg::time_point, uint64_t, double)'
[   46s]    26 |         FrameStamp(time_point in_time, uint64_t in_frameCount, double in_simulationTime) :
[   46s]       |         ^~~~~~~~~~
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:26:9: note:   candidate expects 3 arguments, 2 provided
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:24:9: note: candidate: 'vsg::FrameStamp::FrameStamp()'
[   46s]    24 |         FrameStamp() {}
[   46s]       |         ^~~~~~~~~~
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:24:9: note:   candidate expects 0 arguments, 2 provided
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note: candidate: 'vsg::FrameStamp::FrameStamp(const vsg::FrameStamp&)'
[   46s]    21 |     class VSG_DECLSPEC FrameStamp : public Inherit<Object, FrameStamp>
[   46s]       |                        ^~~~~~~~~~
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note:   candidate expects 1 argument, 2 provided
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note: candidate: 'vsg::FrameStamp::FrameStamp(vsg::FrameStamp&&)'
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note:   candidate expects 1 argument, 2 provided
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/core/Inherit.h: In instantiation of 'static vsg::ref_ptr<R> vsg::Inherit<ParentClass, Subclass>::create(Args&& ...) [with Args = {std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long long int, std::ratio<1, 1000000000> > >&, long long unsigned int}; ParentClass = vsg::Object; Subclass = vsg::FrameStamp]':
[   46s] /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/vsgvr/src/vsgvr/app/Viewer.cpp:136:44:   required from here
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/core/Inherit.h:37:38: error: no matching function for call to 'vsg::FrameStamp::FrameStamp(std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long long int, std::ratio<1, 1000000000> > >&, long long unsigned int)'
[   46s]    37 |             return ref_ptr<Subclass>(new Subclass(std::forward<Args>(args)...));
[   46s]       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:26:9: note: candidate: 'vsg::FrameStamp::FrameStamp(vsg::time_point, uint64_t, double)'
[   46s]    26 |         FrameStamp(time_point in_time, uint64_t in_frameCount, double in_simulationTime) :
[   46s]       |         ^~~~~~~~~~
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:26:9: note:   candidate expects 3 arguments, 2 provided
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:24:9: note: candidate: 'vsg::FrameStamp::FrameStamp()'
[   46s]    24 |         FrameStamp() {}
[   46s]       |         ^~~~~~~~~~
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:24:9: note:   candidate expects 0 arguments, 2 provided
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note: candidate: 'vsg::FrameStamp::FrameStamp(const vsg::FrameStamp&)'
[   46s]    21 |     class VSG_DECLSPEC FrameStamp : public Inherit<Object, FrameStamp>
[   46s]       |                        ^~~~~~~~~~
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note:   candidate expects 1 argument, 2 provided
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note: candidate: 'vsg::FrameStamp::FrameStamp(vsg::FrameStamp&&)'
[   46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:21:24: note:   candidate expects 1 argument, 2 provided
[   46s] make[2]: *** [vsgvr/CMakeFiles/vsgvr.dir/build.make:140: vsgvr/CMakeFiles/vsgvr.dir/src/vsgvr/app/Viewer.cpp.obj] Error 1
[   46s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/build'
[   46s] make[2]: *** Waiting for unfinished jobs....

log.txt

@rhabacker rhabacker changed the title build error with actual vsg no matching function for call to 'vsg::FrameStamp::FrameStamp(std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long long int, std::ratio<1, 1000000000> > >&, int)' [ 46s] 37 | return ref_ptr<Subclass>(new Subclass(std::forward<Args>(args)...)); [ 46s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 46s] In file included from /home/abuild/rpmbuild/BUILD/vsgvr-20230104+git.8a4f987/vsgvr/include/vsgvr/app/Viewer.h:43: [ 46s] /usr/x86_64-w64-mingw32/sys-root/mingw/include/vsg/ui/FrameStamp.h:26:9: note: candidate: 'vsg::FrameStamp::FrameStamp(vsg::time_point, uint64_t, double)' build error with actual vsg no matching function for call to 'vsg::FrameStamp::FrameStamp(...) Mar 20, 2024
rhabacker added a commit to rhabacker/vsgvr that referenced this issue Mar 20, 2024
@rhabacker rhabacker linked a pull request Mar 20, 2024 that will close this issue
rhabacker added a commit to rhabacker/vsgvr that referenced this issue Mar 20, 2024
rhabacker added a commit to rhabacker/vsgvr that referenced this issue Mar 20, 2024
rhabacker added a commit to rhabacker/vsgvr that referenced this issue Mar 21, 2024
rhabacker added a commit to rhabacker/vsgvr that referenced this issue Mar 21, 2024
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 a pull request may close this issue.

1 participant