invalid initialization of reference of type ‘nux::NString&’ from expression of type ‘std::string {aka std::basic_string<char>}’

Bug #1059450 reported by Eleni Maria Stea
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nux
Fix Committed
Low
Unassigned
nux (Ubuntu)
Fix Committed
Low
Unassigned

Bug Description

When I try to build the nuxplayground I get the following error:

make[3]: Entering directory `/home/eleni/staging/source/playgroundbranches/nuxplayground/src/visual-fx'
  CXX AbstractEffectShader.o
AbstractEffectShader.cpp: In constructor ‘AbstractEffectShader::AbstractEffectShader()’:
AbstractEffectShader.cpp:54:80: error: invalid initialization of reference of type ‘nux::NString&’ from expression of type ‘std::string {aka std::basic_string<char>}’
In file included from /home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/NuxCore.h:723:0,
                 from /home/eleni/staging/installs/nux/include/Nux-3.0/Nux/Nux.h:26,
                 from AbstractEffectShader.cpp:1:
/home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/FileIO.h:32:8: error: in passing argument 1 of ‘bool nux::LoadFileToString(nux::NString&, const TCHAR*, nux::NFileManager&)’
AbstractEffectShader.cpp:72:82: error: invalid initialization of reference of type ‘nux::NString&’ from expression of type ‘std::string {aka std::basic_string<char>}’
In file included from /home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/NuxCore.h:723:0,
                 from /home/eleni/staging/installs/nux/include/Nux-3.0/Nux/Nux.h:26,
                 from AbstractEffectShader.cpp:1:
/home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/FileIO.h:32:8: error: in passing argument 1 of ‘bool nux::LoadFileToString(nux::NString&, const TCHAR*, nux::NFileManager&)’
AbstractEffectShader.cpp:91:80: error: invalid initialization of reference of type ‘nux::NString&’ from expression of type ‘std::string {aka std::basic_string<char>}’
In file included from /home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/NuxCore.h:723:0,
                 from /home/eleni/staging/installs/nux/include/Nux-3.0/Nux/Nux.h:26,
                 from AbstractEffectShader.cpp:1:
/home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/FileIO.h:32:8: error: in passing argument 1 of ‘bool nux::LoadFileToString(nux::NString&, const TCHAR*, nux::NFileManager&)’
AbstractEffectShader.cpp:108:77: error: invalid initialization of reference of type ‘nux::NString&’ from expression of type ‘std::string {aka std::basic_string<char>}’
In file included from /home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/NuxCore.h:723:0,
                 from /home/eleni/staging/installs/nux/include/Nux-3.0/Nux/Nux.h:26,
                 from AbstractEffectShader.cpp:1:
/home/eleni/staging/installs/nux/include/Nux-3.0/NuxCore/FileIO.h:32:8: error: in passing argument 1 of ‘bool nux::LoadFileToString(nux::NString&, const TCHAR*, nux::NFileManager&)’
make[3]: *** [AbstractEffectShader.o] Error 1
make[3]: Leaving directory `/home/eleni/staging/source/playgroundbranches/nuxplayground/src/visual-fx'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eleni/staging/source/playgroundbranches/nuxplayground/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eleni/staging/source/playgroundbranches/nuxplayground'
make: *** [all] Error 2

Changed in nuxplayground:
assignee: nobody → Eleni Maria Stea (hikiko)
description: updated
Changed in nux:
status: New → Fix Committed
Changed in nux:
importance: Undecided → Low
no longer affects: nuxplayground
Changed in nux:
assignee: Eleni Maria Stea (hikiko) → nobody
Changed in nux (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.