Konstantina Panagiotopoulou <kwno...@hotmail.com> wrote on 05/09/2014
09:58:40 AM:
>
> I have started implementing basic functions for my GMP type but I
> have an issue on where to place my .h and .x10 files.
> First I added them in
> x10.runtime/src-cpp/x10/lang and
> x10.runtime/src-x10/x10 accordingly.
> I have used proper namespaces for the .h file and added a couple of
> lines in basic_function.h
> When I try to build, this fails, and if I don't build it, then my
> test program (located in x10.dist) cannot find the type.

> Now, if I put everything in the x10.dist directory, I cannot refer
> to the .h file from basic_functions.h
> Not even using its full path.
>
> Any suggestions?
>


Hi,

        It should work to put the .x10 files in x10.runtime/src-x10/x10/lang
and the .cc/.h files in x10.runtime/src-cpp/x10/lang.   You will need to
edit the Makefile in x10.runtime/src-cpp to add the corresponding .o file
to ALL_XRCPP_OBJECTS.

        After doing this, you need to force at least enough of the build to
happen so that the new .h files are copied into x10.dist/stdlib/.  Probably
the simplest thing to do is in x10.dist, do "ant clean-cpp dist-cpp"

--dave
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to