Other Parts Discussed in Thread: MATHLIB, SYSBIOS
Tool/software: Code Composer Studio
Hello
I am using mathlib 2.01.00.00 on CCS5.5.0 and I want to upgrade my application to use MATHLIB 3.1.2.1. But what ever I do, I do not succeed in linking mathlib with my application.
I have developped a simple test program but whatever I do the linker does not want to link my application.
I don't understand. I never had such problems with mathlib 2.01.00.00....
Thank you by advance
ANNE-MARIE BONNET
-> Error displayed at link
-> Configuration of compiler and linker
->Test program
#include <xdc/std.h>
#include <xdc/runtime/Error.h>
#include <xdc/runtime/System.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <math.h>
#include <mathlib.h>
/*
* ======== taskFxn ========
*/
Void taskFxn(UArg a0, UArg a1)
{
System_printf("enter taskFxn()\n");
#define NBPTS 1000
float afCos[NBPTS];
float afSin[NBPTS];
float afTan[NBPTS];
float fAngle = 0;
float fIncAngle = 2 * 3.14 / NBPTS;
int iNbMeasure = NBPTS;
for (int i = 0 ; i < NBPTS ; i++)
{
//Test cos
afCos[i] = cossp(fAngle);
//test sin
afSin[i] = sinsp(fAngle);
//test tan
afTan[i] = tansp(fAngle);
fAngle += fIncAngle;
}
System_printf("exit taskFxn()\n");
System_flush(); /* force SysMin output to console */
}
/*
* ======== main ========
*/
Int main()
{
Task_Handle task;
Error_Block eb;
System_printf("enter main()\n");
Error_init(&eb);
task = Task_create(taskFxn, NULL, &eb);
if (task == NULL) {
System_printf("Task_create() failed!\n");
BIOS_exit(0);
}
BIOS_start(); /* does not return */
return(0);
}