Andes Workshop
http://forum.andestech.com/

Share the c file that use the static library
http://forum.andestech.com/viewtopic.php?f=23&t=915
Page 1 of 1

Author:  jerry [ Tue Jan 27, 2015 3:21 pm ]
Post subject:  Share the c file that use the static library

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 7065 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 7065 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 7065 times ]


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

Author:  maolj [ Wed Jan 28, 2015 6:21 pm ]
Post subject:  Re: Share the c file that use the static library

let us see the building process.
it will like below
Attachment:
share-file.png
share-file.png [ 140.71 KiB | Viewed 7029 times ]

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/