Reply by Keith E. Larson May 15, 20032003-05-15
Hi all

Also be sure to include the correct run time support library in the linker
command file. Without it, there is nothing to link to. Also, since you are
using register passing, be sure the correct library is specified, or rebuild
it as needed. FYI, those *.SRC files have all the source files so you can
extract and rebuild. I cant recall which tool it is, but one of them does
this for you. Read the compiler book...

Incidentally, what Bill is refering to is that this compiler does not
complain about the absence of function prototypes. IE you did not have
#include <math.h> at the top of the file. When you forget to include the
header, no prototype is found and the compiler assumes that all inputs and
outputs to the function are integers (32 bit in the C3x/C4x case). Even if
the link is succesfull, the results can be quite strange since what is
passed on the stack is assumed to be in the wrong format!

BTW: For the really adventurous types that want to learn how a math library
works, the source files are included in the *.SRC files. You can either use
the archiver to extract them, or chop them out manualy since *.SRC files are
really big text files of appended information. Sometimes this can have a
little bit of payback. For example, if you wanted to inline a function or
trade off some resolution for speed.

Best regards,
Keith Larson
---------------
At 09:33 AM 5/15/03 -0400, you wrote:
>
>Did you include math.h? Otherwise, send a copy of your .cmd file.
>
>Bill
-----Original Message-----
From: tolga yuksel [mailto:]
Sent: Thursday, May 15, 2003 2:42 AM
To:
Subject: [c3x] I need help about C compiler

H i ,

I'm a new user of C3x and I need help about C3x C compiler.I use a TMS320C31
DSK with a IBM PC and I have problem with the linker.It gives the error
message 'Undefined symbol ....(for example _sin) first referenced in ...'
and it doesn't give the .out file.I found the error message in
spru035d.pdf.It advised -r command or referencing the symbol.I used the -r
command.It gave the .out file but wrong .out file.(I tried the .out file in
dsktools) Do u have any solution or suggestion?Thanks from now.
+-----------+
|Keith Larson |
|Member Group Technical Staff |
|Texas Instruments Incorporated |
| |
| 281-274-3288 |
| |
| www.micro.ti.com/~klarson |
|-----------+
| TMS320C3x/C4x/VC33 Applications |
| |
| TMS320VC33 |
| The lowest cost and lowest power 500 w/Mflop |
| floating point DSP on the planet! |
+-----------+


Reply by William Zimmerman May 15, 20032003-05-15

Did you include math.h? Otherwise, send a copy of your .cmd file.

Bill
> -----Original Message-----
> From: tolga yuksel [mailto:]
> Sent: Thursday, May 15, 2003 2:42 AM
> To:
> Subject: [c3x] I need help about C compiler > H i ,
> I'm a new user of C3x and I need help about C3x C compiler.I
> use a TMS320C31
> DSK with a IBM PC and I have problem with the linker.It gives
> the error
> message 'Undefined symbol ....(for example _sin) first
> referenced in ...'
> and it doesn't give the .out file.I found the error message in
> spru035d.pdf.It advised -r command or referencing the
> symbol.I used the -r
> command.It gave the .out file but wrong .out file.(I tried
> the .out file in
> dsktools)
> Do u have any solution or suggestion?Thanks from now. >
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~--> Get A Free Psychic Reading! Your
> Online Answer To Life's Important Questions.
> http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA> /26EolB/TM > --------------------------
> -------~->
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only
> the author of this message will receive your answer. You
> need to do a "reply all" if you want your answer to be
> distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://groups.yahoo.com/group/c3x
>
> More Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ >


Reply by tolga yuksel May 15, 20032003-05-15
H i ,
I'm a new user of C3x and I need help about C3x C compiler.I use a TMS320C31
DSK with a IBM PC and I have problem with the linker.It gives the error
message 'Undefined symbol ....(for example _sin) first referenced in ...'
and it doesn't give the .out file.I found the error message in
spru035d.pdf.It advised -r command or referencing the symbol.I used the -r
command.It gave the .out file but wrong .out file.(I tried the .out file in
dsktools)
Do u have any solution or suggestion?Thanks from now.