ADS static library

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DevinHuang
Level 3
Level 3
Distributor - Weikeng(GC)
100 sign-ins 10 replies posted 5 replies posted

我參考幫助文檔Isolate the iLLDs from an AURIX™ Project into a Library Project,我在MULTICAN_FD_1_KIT_TC275_LK編譯不會LINK到static library,如下圖產生編譯錯誤。請問這個要如何解決?另外其他的example的程式添加進來之後要再拿裡設定?在幫助文檔好像沒有對static library後續更新。

DevinHuang_1-1674996782525.png

 

0 Likes
1 Solution
DevinHuang
Level 3
Level 3
Distributor - Weikeng(GC)
100 sign-ins 10 replies posted 5 replies posted

DevinHuang_0-1675417903656.png

我參考幫助文檔Isolate the iLLDs from an AURIX™ Project into a Library Project 步驟去設置library,另外我發現在Auto-discover compiler include path開啟不會自動link include paths ,所以我只能將它關閉並以手動的方式導入header file 才能正常的運作。

DevinHuang_1-1675418098221.png

 

 

View solution in original post

0 Likes
3 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

To help with this topic, we need more information about how the MULTICAN_FD_1_KIT_TC275_LK project has been configured.
How is the “Libraries” setting in the Linker configured?

dw_0-1675221285729.png

 


How are the “includes” of the compiler configured?
Does the project throws compilation error when built, or are errors only visible in the C/C++ Project Explorer?

0 Likes
DevinHuang
Level 3
Level 3
Distributor - Weikeng(GC)
100 sign-ins 10 replies posted 5 replies posted

DevinHuang_0-1675417903656.png

我參考幫助文檔Isolate the iLLDs from an AURIX™ Project into a Library Project 步驟去設置library,另外我發現在Auto-discover compiler include path開啟不會自動link include paths ,所以我只能將它關閉並以手動的方式導入header file 才能正常的運作。

DevinHuang_1-1675418098221.png

 

 

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

If when Auto-discover compiler include path is enabled, it does not automatically link include paths, then you have to disable it and manually import header files in order to work properly.

0 Likes