Home     Company     Products     Services     Community     Download     Store
    [Home arrow Community arrow Forum ]
Community
Community
Login Form





Lost Password?
No account yet? Register
Evidence Forum
Welcome, Guest
Please Login or Register.    Lost Password?
External library linkage (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: External library linkage
#261
markintosh (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
External library linkage 2 Months, 1 Week ago Karma: 0  
Hi to all, I'd like to use the DSP library's functions can someone give me a hint? Do I have to insert in the conf.oil the _link_ing to the external library provided by Microchip (the libdsp-coff.a)?
Cheers, MARCO
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#267
paolo.gai (Admin)
Admin
Posts: 116
graph
User Offline Click here to see the profile of this user
Re:External library linkage 2 Months, 1 Week ago Karma: 4  
Yes... exactly that. In particular, You can use the various OIL attributes like CFLAGS, LDFLAGS, and so on to pass specific compiler options.

Ciao,

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#271
markintosh (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:External library linkage 2 Months ago Karma: 0  
I think probably I can't set the .oil file in the right way because I still a missing library error on compile time. I'm trying to use the math and the dsp library. My .oil file contains the following attributes:
Code: :

... OS myOs {     EE_OPT = "DEBUG";     LDFLAGS = "-LC:/Programmi/Microchip/MPLAB_C30/lib";     LIBS = "-llibc-elf.a";     LIBS = "-llibdsp-elf.a";     CPU_DATA = PIC30 { ....


and the source file contains this preprocessor directives
Code: :

... #include "stdlib.h"   #include "math.h" ...


Do I have to use the path of the math.h and of the dsp.h header file? doing in this way I got some errors with others unfound headers used by these libraries (such as yvals.h). I already read the oil specification but I didn't find anything more to use. cheers, MARCO
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/10/31 15:54 By markintosh.
  The administrator has disabled public write access.
#272
paolo.gai (Admin)
Admin
Posts: 116
graph
User Offline Click here to see the profile of this user
Re:External library linkage 2 Months ago Karma: 4  
Hi,

The CFLAGS, LDFLAGS, ... values are put directly into the PIC30 GCC command line.

If you have a working example under MPLAB IDE, then when you compile from MPLAB IDE you can see the command line executed. From these lines, copy the commands you need, and put them back to the OIL file.

Then, in the OIL fila, just add

EE_OPT = " VERBOSE ";

to get the real commands executed when compiling, and check if they are equal to the ones you had into the MPLAB.

(When done, post the result on the forum, so that we can create a wiki page for the next one who asks it )

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#289
nino (Moderator)
Moderator
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Re:External library linkage 1 Month, 4 Weeks ago Karma: 2  
Be careful! If you selected the Microchip compiler inside Eclipse you need to use coff complied libraries.

Nino
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
Privacy Policy