Skip to content

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

@rhabacker

Description

@rhabacker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions