unresolved inclusion error eclipse

有些话、适合烂在心里 提交于 2021-02-08 09:35:13

问题


So I went to this thing call the digital media academy for 3D game programming. We used eclipse along with Panda3D using their Macbook Pro's to create 3D games. I created an awesome game there which ran beautifully. However when I put everything on a USB and installed everything back on my personal macbook pro at home, I see question marks next to these lines of code that say Unresolved inclusion:

// Panda3D stuff.

#include "auto_bind.h"
#include "audioManager.h"
#include "executionEnvironment.h"
#include "filename.h"

//C++ stuff

#include <cmath>
#include <cstdlib>
#include <iostream>

In the problems section of eclipse I get this:

make: *** No rule to make target `all'.  Stop.      

回答1:


I think, there are at least two issues here.:

  1. Unresolved includes: This can be a glitch with the indexer, a simple index rebuild or a recompile would help Try Right click on project > Index > "Rebuild" or "Re-resolve Unresolved Includes" If no luck then,it's not just a glich but a real problem, so check: Project > Properties > C/C++ General > Path and Symbols > Includes There you should have the directories where the C++ headers are and the "Panda" headers should be with your source files.

  2. Missing "all" target: What CDT is trying to do is invoking make with a target called "all" which is missing from your Makefile. Either CDT is configured for the wrong target and the "all" is not what you need, or something is wrong with the "all" target. You should provide us more information: the proper (original) Makefile The settings here: Project > Properties > C/C++ Build > Behaviour > Make build target



来源:https://stackoverflow.com/questions/14882700/unresolved-inclusion-error-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!