OpenCores
no use no use 1/1 no use no use
Link fail
by s.saeed on Sep 2, 2010
s.saeed
Posts: 5
Joined: Jul 14, 2010
Last seen: Jan 3, 2012
Hi,

I am trying to run lib-iftest.c (from or1ksim) in a standalone environment.
During the linking stage, I am getting the following errors:

=====================================================================
lib-iftest.o: In function `_main':
lib-iftest.o(.text+0x124): undefined reference to `_or1ksim_init'
lib-iftest.o(.text+0x1a0): undefined reference to `_or1ksim_run'
lib-iftest.o(.text+0x238): undefined reference to `_or1ksim_set_time_point'
lib-iftest.o(.text+0x274): undefined reference to `_or1ksim_run'
lib-iftest.o(.text+0x30c): undefined reference to `_or1ksim_get_time_period'
lib-iftest.o(.text+0x44c): undefined reference to `_or1ksim_is_le'
lib-iftest.o(.text+0x498): undefined reference to `_or1ksim_clock_rate'
collect2: ld returned 1 exit status
=====================================================================

Linker instruction is as follows: or32-uclinux-gcc -T default.ld $(or1ksim_home)/lib/libsim.a lib-iftest.o


default.ld is the same as in or1ksim-0.4.0/testsuite/test-code-or1k/.


Does anyone has some idea what may be the reason for this error? As I understand, libsim.a includes all the functions that are shown in the error report, so what may cause the errors?


Thanks and Regards,
Sharjeel Saeed
no use no use 1/1 no use no use
© copyright 1999-2012 OpenCores.org, equivalent to ORSoC AB, all rights reserved. OpenCores®, registered trademark.