11-18-2020 01:03 PM - edited 11-18-2020 01:50 PM
I am writing a bare metal program that requires the C math library for cos(), round(), etc. I have #include <math.h> and the C code compile but I get an error at link time.
undefined reference to `cos'
How do I tell Vitis to include the math library in my application?
Below is my setup script. I don't find a library option on platform create or app create.
file delete -force ./workspace
set hw ../../../implement_p2/results/top.xsa
set proc "ps7_cortexa9_0"
platform create -name "standalone_plat" -hw $hw -proc $proc -os standalone
app create -name rf_fader -platform standalone_plat -domain standalone_domain -template "Empty Application"
11-19-2020 06:08 AM
See this thread, need to add per @stephenm notes.
you can do it using the IDE after you create your app template.
11-19-2020 08:18 AM
Thanks for the reply but those instructions are for the old XSDK flow. I am using Vitis.
I know how to add libraries in the GUI and in my setup scripts with XSDK. Can anyone tell me how to do it in Vitis?
11-19-2020 11:54 AM