简体   繁体   English

Eclipse C / C ++不在子文件夹中编译源代码

[英]eclipse c/c++ not compiling source code in sub folders

Using Eclipse IDE for C/C++ Developers (see details below) I try to reorganize my code in sub folders. 使用面向C / C ++开发人员的Eclipse IDE(请参见下面的详细信息),我尝试在子文件夹中重新组织代码。 However, if I move a source code file from the existing sub folder to a new sub folder, it is not being compiled. 但是,如果我将源代码文件从现有子文件夹移动到新的子文件夹,则不会对其进行编译。 I added the new sub folder to Paths and Symbols->Source locations (and Include) , and it didn't help. 我将新的子文件夹添加到Paths and Symbols-> Source位置(和Include)中,但没有帮助。 My project is based on the Hello_world example from https://github.com/CHERTS/esp8266-devkit.git and it compiles perfectly with it's own sub folder (user) but not with mine :-( 我的项目基于https://github.com/CHERTS/esp8266-devkit.git的Hello_world示例,并且可以使用其自己的子文件夹(用户)完美编译,而不能使用我的:-(

Release 1 (4.4.1) Build id: 20140925-1800 Eclipse C/C++ Development Tools Version: 8.5.0.201409172108 版本1(4.4.1)内部版本号:20140925-1800 Eclipse C / C ++开发工具版本:8.5.0.201409172108

If you open the makefile you'll finde the lines: 如果打开makefile则会发现以下几行:

# which modules (subdirectories) of the project to include in compiling
MODULES = driver user

It looks like you can just add your sub-folders there. 看起来您只需在其中添加子文件夹即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM