On 11/07/2014 03:12 PM, grim wrote:
> Here's what I get on the build command:
>
> [1775/1789] cxxprogram: build/scratch/bulksend.cc.4.o ->
> build/scratch/bulksend /usr/bin/ld:
> /usr/lib/debug/usr/lib/x86_64-linux-gnu/crtl.0(.debug_info):
> relocation ## has invalid symbol index ##
>
> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_g6-linux-gnu/crtl.0:
> In function '_start': (.text+0x20): undefined reference to 'main'
> collect2: ld returned 1 exit status
>
The scratch directory is set up to create executables without needing a
wscript, but not for building multiple object files and linking them
together. So, the main choices for you are to:
1) add your application model files to the src/applications module and
modify the wscript accordingly
2) create a new module (as Konstantinos suggested)
3) write your own Makefile or wscript to do something else
- Tom