Andes Workshop

It is currently Wed Oct 09, 2024 6:36 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Share the c file that use the static library
PostPosted: Tue Jan 27, 2015 3:21 pm 
Offline

Joined: Thu Apr 03, 2014 10:09 am
Posts: 42
This demo is using the "demo-prinft" at AE210p-N968A.
1. Import the demo-printf then modify some setting for AE210p-N968A.
2. Create the static library project that platform use AE210p-N968A.
3. Setting the share file method.
3-1 Right click ->properties Project References
Attachment:
2015_01_27_14_11_20_Properties_for_demo_printf.jpg
2015_01_27_14_11_20_Properties_for_demo_printf.jpg [ 85.23 KiB | Viewed 18332 times ]


3-2 C compiler -> Directories
Setting the share share file include path
"${workspace_loc:/share_file}"

Attachment:
2015_01_27_14_16_04_Properties_for_demo_printf.jpg
2015_01_27_14_16_04_Properties_for_demo_printf.jpg [ 129.33 KiB | Viewed 18332 times ]


3-3 C linker -> Miscellaneous
Setting the share file *.a path
"${workspace_loc:/share_file/Debug/libshare_file.a}"

Attachment:
2015_01_27_14_18_40_Properties_for_demo_printf.jpg
2015_01_27_14_18_40_Properties_for_demo_printf.jpg [ 142.15 KiB | Viewed 18332 times ]


Test demo code
Attachment:
test.zip [155.92 KiB]
Downloaded 1716 times


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Share the c file that use the static library
PostPosted: Wed Jan 28, 2015 6:21 pm 
Offline

Joined: Wed Aug 27, 2014 1:00 pm
Posts: 12
let us see the building process.
it will like below
Attachment:
share-file.png
share-file.png [ 140.71 KiB | Viewed 18296 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group