| Issue 143: | nme.Memory error in c++ code with --no-inline | |
| 1 person starred this issue and may be notified of changes. | Back to list |
gcc 4.6.1 if it makes any difference, latest nightly of haxe, and current svn of hxcpp and nme.
code:
package;
import nme.Memory;
class Main {
static function main() {}
}
compiler options:
haxe -cp . -main Main -lib nme -cpp cpp --no-inline
errors: (from gcc)
./src/nme/Memory.cpp: In static member function ‘static Void nme::Memory_obj::select(nme::utils::ByteArray)’:
./src/nme/Memory.cpp:51:46: error: invalid initialization of non-const reference of type ‘Array<unsigned char>&’ from an rvalue of type ‘Array<unsigned char>’
/home/luca/hxcpp-svn/hxcpp-read-only//include/hx/StdLibs.h:127:13: error: in passing argument 1 of ‘void __hxcpp_memory_select(Array<unsigned char>&)’
error not present when 'not' using --no-inline... the clear issue being the 'need' for --no-inline to avoid other hxcpp issues.
Oct 7, 2011
#1
lucadelt...@googlemail.com
Feb 8, 2012
This should now be fixed.
Status:
Fixed
|