Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ksiedzulek
PostPosted: Mar 05, 2012 - 07:21 AM
Newbie


Joined: Dec 17, 2011
Posts: 10


hi,

I use eclipse with avr plugin. If I create c project and include paths to external library(bluez), and set -lbluetooth. It works

If I create avr project and do this same as above errors appear:/

can i use external libraries with avr-gcc?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 05, 2012 - 09:35 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62899
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

can i use external libraries with avr-gcc?

Undoubtedly. The linker uses -L for you to give paths to directories where .a files are located and it uses -l to identify the libraries to be linked (minus the "lib" and the ".a")

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
ksiedzulek
PostPosted: Mar 05, 2012 - 03:09 PM
Newbie


Joined: Dec 17, 2011
Posts: 10


so what should I do? now, I am not on my linux machine so i don't remember error exactly,..I will back home->run my linux machine->and post error here:) thx:)
 
 View user's profile Send private message  
Reply with quote Back to top
ksiedzulek
PostPosted: Mar 05, 2012 - 03:10 PM
Newbie


Joined: Dec 17, 2011
Posts: 10


so what should I do? now, I am not on my linux machine so i don't remember error exactly,..I will back home->run my linux machine->and post error here:) thx:)
 
 View user's profile Send private message  
Reply with quote Back to top
thygate
PostPosted: Mar 06, 2012 - 08:59 PM
Resident


Joined: Sep 19, 2005
Posts: 768
Location: Belgium

Quote:
can i use external libraries with avr-gcc?
Yes.

Quote:
platforms

The BlueZ kernel modules, libraries and utilities are known to be working prefect on many architectures supported by Linux. This also includes single and multi processor platforms as well as hyper threading systems:

Intel and AMD x86
AMD64 and EM64T (x86-64)
SUN SPARC 32/64bit
PowerPC 32/64bit
Intel StrongARM and XScale
Hitachi/Renesas SH processors
Motorola DragonBall


Of course you CANNOT use precompiled libraries for a different architecture !!
And it has a dozen other dependencies !
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits