Hi,

I am trying to use my X10 class within an external CPP file.
For example, I have X10 class as following :

class X10Image
> {
>     public val width : Int;
>     public val height : Int;
>     public val channel : Int;
>     public val img : Array[Int];
>
>     ... some methods ...
> }
>

When I see the generated cc file, the class is declared in cpp as following
:

class X10Image : public x10::lang::Object   {
>     public:
>     RTT_H_DECLS_CLASS
>
>     void _instance_init();
>
>     x10_int FMGL(width);
>
>     x10_int FMGL(height);
>
>     x10_int FMGL(channel);
>

To access the X10Image class within an external cpp file, I thought that I
can just include X10Image.h with x10rt.h, but the compiler complains like
following :

x10c++: In file included from
> /home/hokira/Projects/x10-2.1.0/include/x10aux/double_utils.h:16,
>      from /home/hokira/Projects/x10-2.1.0/include/x10rt.h:38,
>      from X10Image.h:4,
>      from OpenCV.cpp:7:
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h: In function
> ‘bool x10aux::math::isfinite(double)’:
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h:83: error:
> ‘::isfinite’ has not been declared
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h: In function
> ‘bool x10aux::math::isfinite(float)’:
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h:83: error:
> ‘::isfinitef’ has not been declared
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h: In function
> ‘int x10aux::math::signbit(double)’:
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h:85: error:
> ‘::signbit’ has not been declared
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h: In function
> ‘int x10aux::math::signbit(float)’:
>      /home/hokira/Projects/x10-2.1.0/include/x10aux/math.h:85: error:
> ‘::signbitf’ has not been declared
>

Can anyone please give some comments on this?

Thanks,
Kirak
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to