Dear list,

I use the X10DT for my X10 developments. One project contains the code for a
library.
Another project shall use this library and added it to the build path by
using a project
reference. In the editor, there is no error shown. The library functions are
identified well.
Unfortunately, when I want to compile my executable project (TestBench), the
following
error occurs:

Build initiated: type = auto; delta = ResourceDelta(/InvasICTest)
Command used: g++ -g
-I/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/include
-I/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/stdlib/include
-I/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509
-I. -Wno-long-long -Wno-unused-parameter -DX10_USE_BDWGC -pthread
-I/scratch-local/roloff/workspace/InvasICTest/bin
-I/scratch-local/roloff/workspace/InvasICTest/bin
-I/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/include
-I/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/stdlib/include
/scratch-local/roloff/workspace/InvasICTest/bin/xxx_main_xxx.cc -o
/scratch-local/roloff/workspace/InvasICTest/bin/TestBench
-L/scratch-local/roloff/workspace/InvasICTest/bin
-L/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/lib
-L/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/stdlib
-L/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/stdlib/lib
-lInvasICTest
-L/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/stdlib/lib
-lx10 -lgc -lm -lpthread -lrt -ldl
-L/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/lib
-lx10rt_standalone -Wl,--rpath
-Wl,/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/stdlib/lib
-Wl,--rpath
-Wl,/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/lib
-Wl,-export-dynamic
/tmp/ccyIAgMk.o:(.data+0x8): undefined reference to
`TestBench::main(x10aux::ref<x10::array::Array<x10aux::ref<x10::lang::String>
> >)'
/tmp/ccyIAgMk.o: In function `int x10aux::template_main<x10::lang::Runtime,
TestBench>(int, char**)':
/scratch-local/roloff/opt/x10dt/plugins/x10.dist.linux.x86_64.fragment_2.2.0.201106021509/stdlib/include/x10aux/bootstrap.h:148:
undefined reference to
`TestBench::main(x10aux::ref<x10::array::Array<x10aux::ref<x10::lang::String>
> >)'
collect2: ld gab 1 als Ende-Status zurück

When I don't use the library in my code, the project compiles. What is the
problem?
Can somebody help me?

Best,
Sascha
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to