Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

"undefined reference to " error

aiferaifer China
edited May 19 in Mongoose OS

I get much "undefined reference to xxx function " errors when I build my esp32 program.

LD MyProject.elf
/app/build/objs/src/libsrc.a(block.o):(.literal._Z22CBlock_FrequencyToTimeP28CAacDecoderStaticChannelInfoP22CAacDecoderChannelInfoPssiiPl+0x8): undefined reference to "imdct_block(mdct_t*, long*, long*, short const*, int, int, int, FIXP_DPK const*, int, FIXP_DPK const*, int, long)"
/app/build/objs/src/libsrc.a(block.o): In function "CBlock_FrequencyToTime(CAacDecoderStaticChannelInfo*, CAacDecoderChannelInfo*, short*, short, int, int, long*)":
/app/src/components/fdk-aac/libAACdec/src/block.cpp:731: undefined reference to "imdct_block(mdct_t*, long*, long*, short const*, int, int, int, FIXP_DPK const*, int, FIXP_DPK const*, int, long)"

But the function is declared and defined in my project.

Before LD, no errors or warnnings.

Comments

Sign In or Register to comment.