problems building with hxcpp

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

problems building with hxcpp

fintan boyle
I hate to paste such a large error message but maybe someone knows why I can't build on the cpp target:


/usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe compile-cpp.hxml

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5 -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error: ‘uint64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’ is not a member of ‘std’
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

Cauê W.
hey!
Have you tried updating hxcpp on haxelib ?

cheers! ; )

2011/9/25 fintan boyle <[hidden email]>
I hate to paste such a large error message but maybe someone knows why I can't build on the cpp target:


/usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe compile-cpp.hxml

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5 -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error: ‘uint64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’ is not a member of ‘std’
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

fintan boyle
Hi Caue,

I've checked and I have latest nme and hxcpp installed and not pointing to any temporary dev locations for these libs either and I have the latest release of haXe installed.  Do I need to define any environment variables in .bash_profile ?

thanks

Fintan

On Sun, Sep 25, 2011 at 10:42 PM, Cauê Waneck <[hidden email]> wrote:
hey!
Have you tried updating hxcpp on haxelib ?

cheers! ; )

2011/9/25 fintan boyle <[hidden email]>
I hate to paste such a large error message but maybe someone knows why I can't build on the cpp target:


/usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe compile-cpp.hxml

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5 -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error: ‘uint64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’ is not a member of ‘std’
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

Cauê W.
Yeah, you're right, sorry I saw it quickly and didn't see it was 2.08 already...

Well, it's weird because it's failing on the include path for the common stdint.h, string.h, etc...  Maybe you're trying to build for 10.5 and you're not in 10.5? Does /Developer/SDKs/MacOSX10.5.sdk exist?

Here's an error like that:

Cheers!

2011/9/26 fintan boyle <[hidden email]>
Hi Caue,

I've checked and I have latest nme and hxcpp installed and not pointing to any temporary dev locations for these libs either and I have the latest release of haXe installed.  Do I need to define any environment variables in .bash_profile ?

thanks

Fintan


On Sun, Sep 25, 2011 at 10:42 PM, Cauê Waneck <[hidden email]> wrote:
hey!
Have you tried updating hxcpp on haxelib ?

cheers! ; )

2011/9/25 fintan boyle <[hidden email]>
I hate to paste such a large error message but maybe someone knows why I can't build on the cpp target:


/usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe compile-cpp.hxml

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5 -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error: ‘uint64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’ is not a member of ‘std’
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

fintan boyle
thanks Caue. 

I am missing MacOSX10.5.sdk and only have MacOSX10.6.sdk in that folder.  I thought I had the 10.5 sdk also because I can still set it as a deployment target in XCode.  ...currently downloading XCode 3 to get MacOSX10.5.sdk (over 4GBs!!)

If you don't hear from me the problem is solved :-)

Fintan


On Mon, Sep 26, 2011 at 10:07 AM, Cauê Waneck <[hidden email]> wrote:
Yeah, you're right, sorry I saw it quickly and didn't see it was 2.08 already...

Well, it's weird because it's failing on the include path for the common stdint.h, string.h, etc...  Maybe you're trying to build for 10.5 and you're not in 10.5? Does /Developer/SDKs/MacOSX10.5.sdk exist?

Here's an error like that:

Cheers!

2011/9/26 fintan boyle <[hidden email]>
Hi Caue,

I've checked and I have latest nme and hxcpp installed and not pointing to any temporary dev locations for these libs either and I have the latest release of haXe installed.  Do I need to define any environment variables in .bash_profile ?

thanks

Fintan


On Sun, Sep 25, 2011 at 10:42 PM, Cauê Waneck <[hidden email]> wrote:
hey!
Have you tried updating hxcpp on haxelib ?

cheers! ; )

2011/9/25 fintan boyle <[hidden email]>
I hate to paste such a large error message but maybe someone knows why I can't build on the cpp target:


/usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe compile-cpp.hxml

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5 -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error: ‘uint64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’ is not a member of ‘std’
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

fintan boyle
changing references from 10.5 to 10.6 in build-tool/mac-toolchain.xml also seems to have done the trick without the need for the 10.5 sdk



On Mon, Sep 26, 2011 at 4:37 PM, fintan boyle <[hidden email]> wrote:
thanks Caue. 

I am missing MacOSX10.5.sdk and only have MacOSX10.6.sdk in that folder.  I thought I had the 10.5 sdk also because I can still set it as a deployment target in XCode.  ...currently downloading XCode 3 to get MacOSX10.5.sdk (over 4GBs!!)

If you don't hear from me the problem is solved :-)

Fintan


On Mon, Sep 26, 2011 at 10:07 AM, Cauê Waneck <[hidden email]> wrote:
Yeah, you're right, sorry I saw it quickly and didn't see it was 2.08 already...

Well, it's weird because it's failing on the include path for the common stdint.h, string.h, etc...  Maybe you're trying to build for 10.5 and you're not in 10.5? Does /Developer/SDKs/MacOSX10.5.sdk exist?

Here's an error like that:

Cheers!

2011/9/26 fintan boyle <[hidden email]>
Hi Caue,

I've checked and I have latest nme and hxcpp installed and not pointing to any temporary dev locations for these libs either and I have the latest release of haXe installed.  Do I need to define any environment variables in .bash_profile ?

thanks

Fintan


On Sun, Sep 25, 2011 at 10:42 PM, Cauê Waneck <[hidden email]> wrote:
hey!
Have you tried updating hxcpp on haxelib ?

cheers! ; )

2011/9/25 fintan boyle <[hidden email]>
I hate to paste such a large error message but maybe someone knows why I can't build on the cpp target:


/usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe compile-cpp.hxml

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5 -frtti -o hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error: ‘uint64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must #include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor ‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’ is not a member of ‘std’
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org



--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

Gamehaxe
Hi,
Apple have no respect for backwards compatibility.
If you compile for 10.6, then your code will not run on 10.5.
I tried every compiler flag I could find, and the only way I
could get 10.6 to compile for 10.5 was to use the 10.5 SDK.
I suspect I may be able to copy a subset of the 10.5 SDK and
somehow jam these into the 10.6 SDK, or maybe do some
dlopen dynamic linking and make it work.

The official way to support non 10.5 SDK is to add the line:

  <set name ="MAC_USE_CURRENT_SDK" value="1" />

To your ~/.hxcpp_config.xml file.

But again, your code will not run on older OSs.

Hugh

> changing references from 10.5 to 10.6 in build-tool/mac-toolchain.xml  
> also
> seems to have done the trick without the need for the 10.5 sdk
>
>
>
> On Mon, Sep 26, 2011 at 4:37 PM, fintan boyle <[hidden email]>  
> wrote:
>
>> thanks Caue.
>>
>> I am missing MacOSX10.5.sdk and only have MacOSX10.6.sdk in that folder.
>> I thought I had the 10.5 sdk also because I can still set it as a  
>> deployment
>> target in XCode.  ...currently downloading XCode 3 to get MacOSX10.5.sdk
>> (over 4GBs!!)
>>
>> If you don't hear from me the problem is solved :-)
>>
>> Fintan
>>
>>
>> On Mon, Sep 26, 2011 at 10:07 AM, Cauê Waneck <[hidden email]> wrote:
>>
>>> Yeah, you're right, sorry I saw it quickly and didn't see it was 2.08
>>> already...
>>>
>>> Well, it's weird because it's failing on the include path for the  
>>> common
>>> stdint.h, string.h, etc...  Maybe you're trying to build for 10.5 and  
>>> you're
>>> not in 10.5? Does /Developer/SDKs/MacOSX10.5.sdk exist?
>>>
>>> Here's an error like that:
>>>
>>> http://www.blender.org/forum/viewtopic.php?t=19500&sid=b859b9541d66f114b6682b37a4be9f6f
>>>
>>> Cheers!
>>>
>>> 2011/9/26 fintan boyle <[hidden email]>
>>>
>>>> Hi Caue,
>>>>
>>>> I've checked and I have latest nme and hxcpp installed and not  
>>>> pointing
>>>> to any temporary dev locations for these libs either and I have the  
>>>> latest
>>>> release of haXe installed.  Do I need to define any environment  
>>>> variables in
>>>> .bash_profile ?
>>>>
>>>> thanks
>>>>
>>>> Fintan
>>>>
>>>>
>>>> On Sun, Sep 25, 2011 at 10:42 PM, Cauê Waneck <[hidden email]>  
>>>> wrote:
>>>>
>>>>> hey!
>>>>> Have you tried updating hxcpp on haxelib ?
>>>>>
>>>>> cheers! ; )
>>>>>
>>>>> 2011/9/25 fintan boyle <[hidden email]>
>>>>>
>>>>>> I hate to paste such a large error message but maybe someone knows  
>>>>>> why
>>>>>> I can't build on the cpp target:
>>>>>>
>>>>>>
>>>>>> /usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe  
>>>>>> compile-cpp.hxml
>>>>>>
>>>>>> haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
>>>>>> Creating hxcpp.h.gch...
>>>>>> g++ -Iinclude -c -fvisibility=hidden -O2
>>>>>> -I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot
>>>>>> /Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5  
>>>>>> -frtti -o
>>>>>> hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error:  
>>>>>> typeinfo:
>>>>>> No such file or directory
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error:  
>>>>>> stdint.h:
>>>>>> No such file or directory
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error:  
>>>>>> string.h:
>>>>>> No such file or directory
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error:  
>>>>>> wchar.h:
>>>>>> No such file or directory
>>>>>> In file included from
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error:
>>>>>> algorithm: No such file or directory
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error:  
>>>>>> ‘uint64_t’
>>>>>> does not name a type
>>>>>> In file included from
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error:
>>>>>> declaration of ‘operator new’ as non-function
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error:  
>>>>>> expected
>>>>>> ‘;’ before ‘(’ token
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor
>>>>>> ‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must
>>>>>> #include <typeinfo> before using typeid
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor
>>>>>> ‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must
>>>>>> #include <typeinfo> before using typeid
>>>>>> In file included from
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error:
>>>>>> declaration of ‘operator new’ as non-function
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error:  
>>>>>> expected
>>>>>> ‘;’ before ‘(’ token
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member  
>>>>>> function
>>>>>> ‘int String::compare(const String&) const’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error:  
>>>>>> ‘strcmp’
>>>>>> was not declared in this scope
>>>>>> In file included from
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member
>>>>>> function ‘static hx::ObjectPtr<hx::Anon_obj>  
>>>>>> hx::Anon_obj::Create()’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member
>>>>>> function ‘static hx::ObjectPtr<hx::Anon_obj>  
>>>>>> hx::Anon_obj::Create(const
>>>>>> Dynamic&)’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member
>>>>>> function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> In file included from
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’
>>>>>> does not name a type
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
>>>>>> ‘void Array_obj<ELEM_>::sort(Dynamic)’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’  
>>>>>> is
>>>>>> not a member of ‘std’
>>>>>> In file included from
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool
>>>>>> hx::TCanCast(hx::Object*)’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must
>>>>>> #include <typeinfo> before using typeid
>>>>>> In file included from
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member
>>>>>> function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with  
>>>>>> ELEM_ =
>>>>>> Dynamic]’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated
>>>>>> from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:
>>>>>> instantiated from here
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
>>>>>> ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ =  
>>>>>> Dynamic]’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated
>>>>>> from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with  
>>>>>> ELEM_ =
>>>>>> Dynamic]’
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
>>>>>> from here
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
>>>>>> ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated
>>>>>> from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
>>>>>> from here
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’
>>>>>> was not declared in this scope
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
>>>>>> ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated
>>>>>> from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
>>>>>> from here
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
>>>>>> ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ =  
>>>>>> Dynamic]’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated
>>>>>> from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const  
>>>>>> Dynamic&)
>>>>>> [with ELEM_ = Dynamic]’
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
>>>>>> from here
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
>>>>>> ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ =  
>>>>>> Dynamic]’:
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated
>>>>>> from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const  
>>>>>> Dynamic&)
>>>>>> [with ELEM_ = Dynamic]’
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
>>>>>> from here
>>>>>> /usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no
>>>>>> corresponding deallocation function for `void* operator new(long  
>>>>>> unsigned
>>>>>> int)'
>>>>>> Called from ? line 1
>>>>>> Called from BuildTool.hx line 1100
>>>>>> Called from BuildTool.hx line 501
>>>>>> Called from a C function
>>>>>> Called from BuildTool.hx line 538
>>>>>> Called from BuildTool.hx line 657
>>>>>> Called from BuildTool.hx line 685
>>>>>> Called from BuildTool.hx line 153
>>>>>> Uncaught exception - Error creating pch: 256 - build cancelled
>>>>>>
>>>>>>
>>>>>> --
>>>>>> haXe - an open source web programming language
>>>>>> http://haxe.org
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> haXe - an open source web programming language
>>>>> http://haxe.org
>>>>>
>>>>
>>>>
>>>> --
>>>> haXe - an open source web programming language
>>>> http://haxe.org
>>>>
>>>
>>>
>>> --
>>> haXe - an open source web programming language
>>> http://haxe.org
>>>
>>

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

fintan boyle
thanks Hugh.  I've since discovered MAC_USE_CURRENT_SDK in hxcpp_config.xml

good to know about the lack of backward compatibility

On Wed, Oct 5, 2011 at 5:09 PM, Gamehaxe <[hidden email]> wrote:
Hi,
Apple have no respect for backwards compatibility.
If you compile for 10.6, then your code will not run on 10.5.
I tried every compiler flag I could find, and the only way I
could get 10.6 to compile for 10.5 was to use the 10.5 SDK.
I suspect I may be able to copy a subset of the 10.5 SDK and
somehow jam these into the 10.6 SDK, or maybe do some
dlopen dynamic linking and make it work.

The official way to support non 10.5 SDK is to add the line:

 <set name ="MAC_USE_CURRENT_SDK" value="1" />

To your ~/.hxcpp_config.xml file.

But again, your code will not run on older OSs.

Hugh


changing references from 10.5 to 10.6 in build-tool/mac-toolchain.xml also
seems to have done the trick without the need for the 10.5 sdk



On Mon, Sep 26, 2011 at 4:37 PM, fintan boyle <[hidden email]> wrote:

thanks Caue.

I am missing MacOSX10.5.sdk and only have MacOSX10.6.sdk in that folder.
I thought I had the 10.5 sdk also because I can still set it as a deployment
target in XCode.  ...currently downloading XCode 3 to get MacOSX10.5.sdk
(over 4GBs!!)

If you don't hear from me the problem is solved :-)

Fintan


On Mon, Sep 26, 2011 at 10:07 AM, Cauê Waneck <[hidden email]> wrote:

Yeah, you're right, sorry I saw it quickly and didn't see it was 2.08
already...

Well, it's weird because it's failing on the include path for the common
stdint.h, string.h, etc...  Maybe you're trying to build for 10.5 and you're
not in 10.5? Does /Developer/SDKs/MacOSX10.5.sdk exist?

Here's an error like that:

http://www.blender.org/forum/viewtopic.php?t=19500&sid=b859b9541d66f114b6682b37a4be9f6f

Cheers!

2011/9/26 fintan boyle <[hidden email]>

Hi Caue,

I've checked and I have latest nme and hxcpp installed and not pointing
to any temporary dev locations for these libs either and I have the latest
release of haXe installed.  Do I need to define any environment variables in
.bash_profile ?

thanks

Fintan


On Sun, Sep 25, 2011 at 10:42 PM, Cauê Waneck <[hidden email]> wrote:

hey!
Have you tried updating hxcpp on haxelib ?

cheers! ; )

2011/9/25 fintan boyle <[hidden email]>

I hate to paste such a large error message but maybe someone knows why
I can't build on the cpp target:


/usr/lib/haxe/lib/nme/3,0,1/samples/01-Simple -> haxe compile-cpp.hxml

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_208 -Dtrue
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2
-I/usr/lib/haxe/lib/hxcpp/2,08,0//include -DHX_MACOS -isysroot
/Developer/SDKs/MacOSX10.5.sdk -m32 -mmacosx-version-min=10.5 -frtti -o
hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:13:20: error: typeinfo:
No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:14:20: error: stdint.h:
No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:21:20: error: string.h:
No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:25:19: error: wchar.h:
No such file or directory
In file included from
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:188:21: error:
algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:16: error: ‘uint64_t’
does not name a type
In file included from
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:198:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error:
declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:56: error: expected
‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor
‘hx::ObjectPtr<O>::ObjectPtr(const hx::ObjectPtr<SOURCE_>&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:143: error: must
#include <typeinfo> before using typeid
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h: In constructor
‘hx::ObjectPtr<O>::ObjectPtr(const SOURCE_*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Object.h:157: error: must
#include <typeinfo> before using typeid
In file included from
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:200:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error:
declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:20: error: expected
‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h: In member function
‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxString.h:96: error: ‘strcmp’
was not declared in this scope
In file included from
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:205:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member
function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:34: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member
function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const
Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:35: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h: In static member
function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Anon.h:37: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
In file included from
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:206:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:75: error: ‘size_t’
does not name a type
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:367: error: ‘sort’ is
not a member of ‘std’
In file included from
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:207:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h: In function ‘bool
hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Class.h:117: error: must
#include <typeinfo> before using typeid
In file included from
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hxcpp.h:214:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In static member
function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ =
Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:465:   instantiated
from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Operators.h:238:
instantiated from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:517: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:375:   instantiated
from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ =
Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:528: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:376:   instantiated
from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:536: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:537: error: ‘memcpy’
was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:378:   instantiated
from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:370: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:385:   instantiated
from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&)
[with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:547: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h: In member function
‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:386:   instantiated
from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&)
[with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/2,08,0//include/hx/Boot.h:12:   instantiated
from here
/usr/lib/haxe/lib/hxcpp/2,08,0//include/Array.h:555: warning: no
corresponding deallocation function for `void* operator new(long unsigned
int)'
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 685
Called from BuildTool.hx line 153
Uncaught exception - Error creating pch: 256 - build cancelled


--
haXe - an open source web programming language
http://haxe.org



--
haXe - an open source web programming language
http://haxe.org



--
haXe - an open source web programming language
http://haxe.org



--
haXe - an open source web programming language
http://haxe.org



--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

Nicolas Cannasse
In reply to this post by Gamehaxe
Le 05/10/2011 18:09, Gamehaxe a écrit :

> Hi,
> Apple have no respect for backwards compatibility.
> If you compile for 10.6, then your code will not run on 10.5.
> I tried every compiler flag I could find, and the only way I
> could get 10.6 to compile for 10.5 was to use the 10.5 SDK.
> I suspect I may be able to copy a subset of the 10.5 SDK and
> somehow jam these into the 10.6 SDK, or maybe do some
> dlopen dynamic linking and make it work.
>
> The official way to support non 10.5 SDK is to add the line:
>
> <set name ="MAC_USE_CURRENT_SDK" value="1" />
>
> To your ~/.hxcpp_config.xml file.
>
> But again, your code will not run on older OSs.

Did you try "export MACOSX_DEPLOYMENT_TARGET=10.4" ?
It seems to work for Neko.
Of course you have to make sure that EVERYTHING is compiled this way.

Best,
Nicolas

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: problems building with hxcpp

Gamehaxe
Thanks for this - it did the trick.

Hugh
>
> Did you try "export MACOSX_DEPLOYMENT_TARGET=10.4" ?
> It seems to work for Neko.
> Of course you have to make sure that EVERYTHING is compiled this way.
>

--
haXe - an open source web programming language
http://haxe.org