Yocto Makefile.am doesn't not include new .c/.cpp files [message #1773170] |
Fri, 22 September 2017 11:30  |
Eclipse User |
|
|
|
Hi,
I have Eclipse-SDK-4.2.2-linux-gtk_x86_64 version installed with Yocto ADT plugin.
When I create C++ project with Yocto ADT Autotools wizard, the created project compiles and runs without error.
But when I add a .cpp /.c file into the project src folder, and refresh/clean the project, and recompile the project, it generates errors. I found that any functions in the user added .cpp file or .c file, can not be called from, because the files are simply not linked into the target file. I have to manually add the added .cpp file into the Makefile.am in the src folder.
such as (MyNewAdded.c):
bin_PROGRAM = HelloWorld.c MyNewAdded.c
Why the generated Makefile.am doesn't automatically include the MyNewAdded.c?
How to fix it?
Thank you,
David Zhou
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02003 seconds