Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT error parser and makefiles
CDT error parser and makefiles [message #226238] Mon, 03 November 2008 06:03 Go to next message
Eclipse UserFriend
I am building my project using eclipse and a custom make application.
The build itself works fine. Unfortunately the GCC error parser is not
able to extract the file names of the output.

This is the raw output:

../main.hpp:75: error: expected `;' before 'extension'

This is the entry in the problems window:

Description | Resource | Path | Location | Type
../main.hpp: error: expected `;' before 'extension' | make_project | | 75
| C/C++ Problem

Double clicking at the entry in the window does not open the ../main.hpp .

What is wrong?

PS: main.hpp is a 'Linked File' and does not exist in the project folder.
I think I need a way to tell eclipse that she should search in folder XYZ
for the source files?!
Re: CDT error parser and makefiles [message #226252 is a reply to message #226238] Mon, 03 November 2008 08:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: okm.wanadoo.fr

What kind of project are you using ?

..A standard make project ?
..A managed make project ?

ML


"Daniel "M
Re: CDT error parser and makefiles [message #226273 is a reply to message #226252] Mon, 03 November 2008 11:18 Go to previous messageGo to next message
Eclipse UserFriend
I am using a standard make project using a self-made makefile.
Re: CDT error parser and makefiles [message #226298 is a reply to message #226238] Mon, 03 November 2008 14:14 Go to previous messageGo to next message
Eclipse UserFriend
Daniel Müller wrote:
> I am building my project using eclipse and a custom make application.
> The build itself works fine. Unfortunately the GCC error parser is not
> able to extract the file names of the output.

I think this is related to this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247838

If you are familiar with Eclipse PDE, you can create a quick fix by patching
org.eclipse.cdt.core.ErrorParserManager.getWorkingDirectory( ) so that it will
return absolute paths for the working directory of make:

public IPath getWorkingDirectory() {
if (fDirectoryStack.size() != 0) {
return fBaseDirectory.append(fDirectoryStack.lastElement());
}
// Fall back to the Project Location
return fBaseDirectory;
}

I reckon this is not the correct way to deal with this, but it fixes the
problem, at least for my setup. :-)

Cheers,

Peter
Re: CDT error parser and makefiles [message #226305 is a reply to message #226298] Mon, 03 November 2008 15:31 Go to previous message
Eclipse UserFriend
Hey Peter

thank you for your answer.
Unfortunately I have not the slightest idea of Java programming. Is there
any chance to upload a compiled, fixed binary (jar?)?

Thank you
Previous Topic:Deactivate implicit #include
Next Topic:linking often causes eclipse to hang on linux
Goto Forum:
  


Current Time: Tue Nov 04 20:52:09 EST 2025

Powered by FUDForum. Page generated in 0.03127 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top