Hi Xie,
use the -post option to x10c++. This is of the form:
-post '<compiler> <CXXFLAGS> # <LDFLAGS>'
or
-post '# <CXXFLAGS> # <LDFLAGS>'
For example: x10c++ -O -post '# -I/path # -L/path'
http://x10-lang.org/documentation/practical-x10-programming/native-code-integration.html
To see the C++ compiler invocation that is generated by x10c++, use
'-report postcompile=1'
Cheers,
Josh
On 27/12/11 18:42, chenny xie wrote:
Hi,
I want to write some program in x10 that need to use some cpp library
the library is generally added in makefile or compiled like " gcc
.....-I/path/ -L/path/...." ,
so how can I add it when write code in x10?
PS: I am now linking the cpp file into x10 use :
@NativeCPPInclude("*.h")
@NativeCPPCompilationUnit("*.cc")
by Xie
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users