Skip to content

Instantly share code, notes, and snippets.

@TheDrawingCoder-Gamer
Created January 7, 2022 15:43
Show Gist options
  • Save TheDrawingCoder-Gamer/47686e5f248cfffcbe6c1d229f08c1c5 to your computer and use it in GitHub Desktop.
Save TheDrawingCoder-Gamer/47686e5f248cfffcbe6c1d229f08c1c5 to your computer and use it in GitHub Desktop.
haxelib run hxcpp Build.xml haxe -DHXCPP_NO_COLOR="1" -Dhaxe="4.2.4" -Dhaxe3="1" -Dhaxe4="1" -Dhaxe_ver="4.204" -Dhxcpp_api_level="400" -Dhxcpp_smart_strings="1" -Dsource_header="Generated by Haxe 4.2.4" -Dstatic="1" -Dtarget.name="cpp" -Dtarget.static="true" -Dtarget.sys="true" -Dtarget.threaded="true" -Dtarget.unicode="true" -Dtarget.utf16="true" -Dutf16="1" -I"src/" -I"" -I"/usr/share/haxe/std/cpp/_std/" -I"/usr/share/haxe/std/"
Creating /home/bulby/Documents/GitHub/cpp-bork/bin/obj/linux64/__pch/haxe/hxcpp.h.gch...
Compiling group: haxe
g++ -Iinclude -I/home/bulby/Documents/GitHub/cpp-bork/bin/../src/ -c -fvisibility=hidden -O2 -fpic -fPIC -Wno-overflow -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=400(haxe) -m64 -DHXCPP_M64 -I/home/bulby/haxelib/hxcpp/4,2,1/include ... tags=[haxe,static]
- src/Main.cpp
Error: ./src/Main.cpp: In static member function ‘static bool Main_obj::__GetStatic(const String&, Dynamic&, hx::PropertyAccess)’:
./src/Main.cpp:53:68: error: no match for ‘operator=’ (operand types are ‘Dynamic’ and ‘Faz’)
53 | if (HX_FIELD_EQ(inName,"faz") ) { outValue = ( faz ); return true; }
| ^
In file included from /home/bulby/haxelib/hxcpp/4,2,1/include/hxcpp.h:353:
/home/bulby/haxelib/hxcpp/4,2,1/include/Dynamic.h:14:37: note: candidate: ‘Dynamic& Dynamic::operator=(const Dynamic&)’
14 | class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
| ^~~~~~~
/home/bulby/haxelib/hxcpp/4,2,1/include/Dynamic.h:14:37: note: no known conversion for argument 1 from ‘Faz’ to ‘const Dynamic&’
/home/bulby/haxelib/hxcpp/4,2,1/include/Dynamic.h: In instantiation of ‘RETURN_ Dynamic::Cast() const [with RETURN_ = Faz]’:
./src/Main.cpp:66:61: required from here
/home/bulby/haxelib/hxcpp/4,2,1/include/Dynamic.h:107:34: error: no matching function for call to ‘Faz::Faz(const Dynamic&)’
107 | RETURN_ Cast() const { return RETURN_(*this); }
| ^~~~~~~~~~~~~~
In file included from ./src/Main.cpp:5:
/home/bulby/Documents/GitHub/cpp-bork/bin/../src/test.h:8:9: note: candidate: ‘Faz::Faz()’
8 | Faz();
| ^~~
/home/bulby/Documents/GitHub/cpp-bork/bin/../src/test.h:8:9: note: candidate expects 0 arguments, 1 provided
/home/bulby/Documents/GitHub/cpp-bork/bin/../src/test.h:6:7: note: candidate: ‘constexpr Faz::Faz(const Faz&)’
6 | class Faz {
| ^~~
/home/bulby/Documents/GitHub/cpp-bork/bin/../src/test.h:6:7: note: no known conversion for argument 1 from ‘const Dynamic’ to ‘const Faz&’
Error: Build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment