Compile issues
- Dominant language
- C
- Stars
- 35
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
I'm compiling SpanDSP into a library for use in an app. I'm not a GCC genius, sadly. When compiling, I get no errors. My compile line is:
cc -g -O3 -Wall -I/home/lee/libraries/include -Ic_src -fPIC -shared -lspandsp -ltiff -lm c_src/g722_codec.c -o priv/g722_codec_drv.so
All good. However, on accessing the library, I get symbol errors `undefined symbol: g722_encode_init`.
I assume I'm making a noob mistake?
Thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the compile command and c_src/g722_codec.c, then inspect how the SpanDSP library is linked and where g722_encode_init is defined. Reproduce the shared-library build and examine its exported symbols and runtime dependencies. Done means the library loads without the reported undefined-symbol error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100