HaxeFoundation / HaxeFoundation/hxcpp

Fail to create CPP file correctly from template.

Open
#874 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

I've tried to compile a native binary and I keep running into this problem. Where it tries to create my ProgressSlider.cpp but fails. Below is a link to the repo, a link to the file CPP file and how to compile UI Framework yourself.

ProgressSlider.cpp
https://www.dropbox.com/s/vv6l8moxkbmb4jx/ProgressSlider.cpp?dl=0

You can download the code here:

https://github.com/StarbuckZero/CHAOS_UI_HX

After you download the source extend the demo class.


package;

import openfl.display.Sprite;

class Main extends UIDemo
{
public function new()
{
super();
}
}


Here is the output from the error.


Error: In file included from /home/erick/haxelib/hxcpp/4,0,64/include/hxcpp.h:347:0:
/home/erick/haxelib/hxcpp/4,0,64/include/hx/Object.h: In instantiation of ‘hx::ObjectPtr::ObjectPtr(const SOURCE_*, bool) [with SOURCE_ = com::chaos::ui::Label_obj; OBJ_ = hx::Object]’:
/home/erick/haxelib/hxcpp/4,0,64/include/Dynamic.h:102:53: required from ‘Dynamic::Dynamic(const hx::ObjectPtr&) [with SOURCE_ = com::chaos::ui::Label_obj]’
./src/com/chaos/ui/ProgressSlider.cpp:280:27: required from here
/home/erick/haxelib/hxcpp/4,0,64/include/hx/Object.h:358:17: error: no matching function for call to ‘hx::ObjectPtr::CastPtr(com::chaos::ui::Label_obj*, bool&)’
CastPtr(const_cast(inPtr),inCheckCast);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/erick/haxelib/hxcpp/4,0,64/include/hx/Object.h:306:16: note: candidate: void hx::ObjectPtr::CastPtr(hx::Object*, bool) [with OBJ_ = hx::Object]
inline void CastPtr(hx::Object *inPtr,bool inThrowOnInvalid)
^~~~~~~
/home/erick/haxelib/hxcpp/4,0,64/include/hx/Object.h:306:16: note: no known conversion for argument 1 from ‘com::chaos::ui::Label_obj*’ to ‘hx::Object*’

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.