![]() mlongcalls -Wno-frame-address -o hello_world_2.elf & cd. Linking CXX executable hello_world_2.elfĬmd.exe /C "cd. In = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N) //'undefined reference to fftw_malloc' in is f (set of points we know) -> out is fhat (complex fourier coefficents) with magnitude and phase initialize the arrays-> "in" is an array of fftw_complex type (basically a pair of doubles) ![]() However, when I call any functions like FFTW's 'malloc' from that same library, I get an error "undefined reference to fftw_malloc()"Įxcerpt from hello_world_main.c's 'app_main(): //complex: double = įftw_complex *in, *out //no errors here for some reason It is weird because in my "hello_world_main.c" the complier seems to know some data types such as 'FFTW_Complex', which are only found in the library I'm trying to use. I took an example project 'hello_world' from esp-idf's examples, and wrote my own code inside of the 'hello_world_main.c'. Here's my current 'CMakeLists' inside main folder idf_component_register(SRCS "hello_world_main.c" I've been through cmake tutorials, but I just can't figure it out. I think it has something to do with my unfamiliarity with CMake, and I have tried all sorts of different "CMakeLists.txt", but not sure what it should look like. For example, I have implemented an FFT-noise-filter program in c, and now i want to bring it into the esp-idf framework. ![]() I am having trouble getting access to an outside library's functions. I am building a project with an ESP32 board and VSCode's esp-idf framework. ![]() ![]() I've been trying to fix this for a couple days so any insight would be greatly appreciated. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |