cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
3,124 Views
Registered: ‎06-09-2010

problems when using xapp1026

 my device is xupv5lx110t, but the example in the xapp1026.zip based on xc5vlx50t .  I bulid a new project accrodding to the example.  I successfully generate bitstream and generate libraries and Bsps . However , when I want to build a software applications,it have such errors:

 


 

/cygdrive/e/Xilinx/10.1/EDK/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.1.1/../../../../microblaze-xilinx-elf/lib/m/crtinit.o: In function `_crtinit':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [TestApp_Peripheral/executable.elf] Error 1

 

/cygdrive/e/Xilinx/10.1/EDK/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.1.1/../../../../microblaze-xilinx-elf/lib/m/crtinit.o: In function `_crtinit':

: undefined reference to `main'

collect2:ld returned 1 exit status

make: *** [TestApp_Peripheral/executable.elf] Error 1

 

 

I think the applications have no problem ,  please help me    -_-

 

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
3,074 Views
Registered: ‎08-01-2007

are you building the testapp_peripheral applicaiton with xilkernel OS selected?

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
3,068 Views
Registered: ‎02-25-2009

You need to set compiler options:

 

In XPS project GUI, right click on software application project (in Applications window),

 

click on "Set Compiler Options",

 

go to tab "Path and Options",

 

provide the following switches in the space provided under "Libraries to link against (-l)" :

 

-llwip4 -lxilkernel

 

cheers!! 

 

 

0 Kudos