Electrostat-Lab / Electrostatic-Sandbox

A high-performance infrastructure framework for distributed systems simulation based on the IEEE-1516 HLA Spec. and NASA DSES.
https://electrostat-lab.github.io/Electrostatic-Sandbox/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Fix linking to math library for electrostatic-core #32

Closed pavly-gerges closed 2 months ago

pavly-gerges commented 2 months ago

This PR fixes this linking issue:

-- Build files have been written to: /home/runner/work/Electrostatic-Sandbox/Electrostatic-Sandbox/electrostatic-sandbox-framework/electrostatic-examples/build/linux/x86
Scanning dependencies of target hello_comm.c.elf
[ 25%] Building C object CMakeFiles/hello_comm.c.elf.dir/src/hello_comm.c.o
[ 50%] Linking C executable hello_comm.c.elf
/usr/bin/ld: ../../../dependencies/libs/linux/x86/libelectrostatic.so: undefined reference to `powf'
/usr/bin/ld: ../../../dependencies/libs/linux/x86/libelectrostatic.so: undefined reference to `acosf'
/usr/bin/ld: ../../../dependencies/libs/linux/x86/libelectrostatic.so: undefined reference to `pow'
/usr/bin/ld: ../../../dependencies/libs/linux/x86/libelectrostatic.so: undefined reference to `atan2f'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/hello_comm.c.elf.dir/build.make:104: hello_comm.c.elf] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/hello_comm.c.elf.dir/all] Error 2
gmake: *** [Makefile:103: all] Error 2