Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Limit depth of include resolving for self-inclusion(Eclipse run out of memory in an infinite self-include loop)
Limit depth of include resolving for self-inclusion [message #1220471] Thu, 12 December 2013 02:18 Go to next message
HY Xin is currently offline HY XinFriend
Messages: 2
Registered: December 2013
Junior Member
Hi,

I'm using BOOST preprocessors to generate preset arrays. One problem I run into is when I self-include a file, eclipse would run into an infinite include resolving loop and eventually hang up due to running out of memory.

I want to set a depth limitation of resolving includes so it won't use up all memory.

Thanks,
Re: Limit depth of include resolving for self-inclusion [message #1220623 is a reply to message #1220471] Thu, 12 December 2013 18:23 Go to previous messageGo to next message
Rox Ren is currently offline Rox RenFriend
Messages: 2
Registered: January 2010
Junior Member
Why don't you using a include guard to prevent self-inclusion?

e.g.

#ifndef __MY_HEADER__
#define __MY_HEADER__

....

#endif

Re: Limit depth of include resolving for self-inclusion [message #1294658 is a reply to message #1220623] Sun, 13 April 2014 17:36 Go to previous message
HY Xin is currently offline HY XinFriend
Messages: 2
Registered: December 2013
Junior Member
The thing is, I really need to self include. That is how boost preprocessor works.
Previous Topic:Executeable file Linux
Next Topic:I can't enable Content Assist in Eclipse Kepler
Goto Forum:
  


Current Time: Sat Apr 27 03:55:41 GMT 2024

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

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

Back to the top