haxe 2.05 and hxcpp 2.05.1

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

haxe 2.05 and hxcpp 2.05.1

Randy Stauner
Is anybody using the latest haxe/hxcpp?

I just updated my haxe (from 2.04), reinstalled hxcpp from haxelib,
and now my old project won't compile with hxcpp:

---

gcc -c -fvisibility=hidden -O2 -DHX_LINUX -m32 -I/usr/lib/haxe/lib/hxcpp/2,05,1//include -DBUILDING_HXCPP_DLL -D_CRT_SECURE_NO_DEPRECATE -DNO_THREAD_REDIRECT -DGC_THREADS -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/include -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/include/private -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/libatomic_ops-1.2/src -frtti /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp -oobj/linux//src/hx/GCInternal.o
/usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp: In member function ‘void BlockData::Verify()’:
/usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:295: error: ‘printf’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp: In member function ‘AllocType BlockData::GetAllocType(int, bool)’:
/usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:359: error: ‘printf’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:373: error: ‘printf’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:391: error: ‘printf’ was not declared in this scope
Called from <null> line 1
Called from BuildTool.hx line 840
Called from BuildTool.hx line 433
Called from BuildTool.hx line 456
Called from BuildTool.hx line 529
Called from BuildTool.hx line 561
Called from BuildTool.hx line 166
Uncaught exception - Error : 256 - build cancelled

---

Seeing 'printf' not declared i tried adding #include <stdio.h> to the cpp file in question but that just made it worse.

Has anybody already experienced/fixed this?
Maybe there's a simple setup step that I didn't do?

Thanks.

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

Re: haxe 2.05 and hxcpp 2.05.1

clemos
Hi

I did :
#include <cstdio>
as mentionned somewhere on the forum...

+++++++
Clément

On Fri, Mar 12, 2010 at 12:15 AM, Randy Stauner
<[hidden email]> wrote:

> Is anybody using the latest haxe/hxcpp?
>
> I just updated my haxe (from 2.04), reinstalled hxcpp from haxelib,
> and now my old project won't compile with hxcpp:
>
> ---
>
> gcc -c -fvisibility=hidden -O2 -DHX_LINUX -m32
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//include -DBUILDING_HXCPP_DLL
> -D_CRT_SECURE_NO_DEPRECATE -DNO_THREAD_REDIRECT -DGC_THREADS
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/include
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/include/private
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/libatomic_ops-1.2/src
> -frtti /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp
> -oobj/linux//src/hx/GCInternal.o
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp: In member function
> ‘void BlockData::Verify()’:
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:295: error: ‘printf’
> was not declared in this scope
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp: In member function
> ‘AllocType BlockData::GetAllocType(int, bool)’:
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:359: error: ‘printf’
> was not declared in this scope
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:373: error: ‘printf’
> was not declared in this scope
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:391: error: ‘printf’
> was not declared in this scope
> Called from <null> line 1
> Called from BuildTool.hx line 840
> Called from BuildTool.hx line 433
> Called from BuildTool.hx line 456
> Called from BuildTool.hx line 529
> Called from BuildTool.hx line 561
> Called from BuildTool.hx line 166
> Uncaught exception - Error : 256 - build cancelled
>
> ---
>
> Seeing 'printf' not declared i tried adding #include <stdio.h> to the cpp
> file in question but that just made it worse.
>
> Has anybody already experienced/fixed this?
> Maybe there's a simple setup step that I didn't do?
>
> Thanks.
>
> --
> 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: haxe 2.05 and hxcpp 2.05.1

Randy Stauner
I see: http://haxe.org/forum/thread/1244
That did it.
Thanks!

On Thu, Mar 11, 2010 at 7:04 PM, clemos <[hidden email]> wrote:
Hi

I did :
#include <cstdio>
as mentionned somewhere on the forum...

+++++++
Clément

On Fri, Mar 12, 2010 at 12:15 AM, Randy Stauner
<[hidden email]> wrote:
> Is anybody using the latest haxe/hxcpp?
>
> I just updated my haxe (from 2.04), reinstalled hxcpp from haxelib,
> and now my old project won't compile with hxcpp:
>
> ---
>
> gcc -c -fvisibility=hidden -O2 -DHX_LINUX -m32
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//include -DBUILDING_HXCPP_DLL
> -D_CRT_SECURE_NO_DEPRECATE -DNO_THREAD_REDIRECT -DGC_THREADS
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/include
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/include/private
> -I/usr/lib/haxe/lib/hxcpp/2,05,1//runtime/thirdparty/gc-7.1/libatomic_ops-1.2/src
> -frtti /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp
> -oobj/linux//src/hx/GCInternal.o
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp: In member function
> ‘void BlockData::Verify()’:
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:295: error: ‘printf’
> was not declared in this scope
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp: In member function
> ‘AllocType BlockData::GetAllocType(int, bool)’:
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:359: error: ‘printf’
> was not declared in this scope
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:373: error: ‘printf’
> was not declared in this scope
> /usr/lib/haxe/lib/hxcpp/2,05,1//src/hx/GCInternal.cpp:391: error: ‘printf’
> was not declared in this scope
> Called from <null> line 1
> Called from BuildTool.hx line 840
> Called from BuildTool.hx line 433
> Called from BuildTool.hx line 456
> Called from BuildTool.hx line 529
> Called from BuildTool.hx line 561
> Called from BuildTool.hx line 166
> Uncaught exception - Error : 256 - build cancelled
>
> ---
>
> Seeing 'printf' not declared i tried adding #include <stdio.h> to the cpp
> file in question but that just made it worse.
>
> Has anybody already experienced/fixed this?
> Maybe there's a simple setup step that I didn't do?
>
> Thanks.
>
> --
> 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