Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » indexer glitch
indexer glitch [message #785679] Sun, 29 January 2012 09:40 Go to next message
Franz Fehringer is currently offline Franz FehringerFriend
Messages: 91
Registered: July 2009
Member
Hi,

In our C/C++ code we use a preprocessor macro DLL_API which gets
expanded as needed.
This means __declspec(dllexport)/__declspec(dllimport) on M$ Windows and
void/empty otherwise (Linux say, there are void/empty cases for Windows
too).
With using F3 multiple times i end up in the void/empty #define on
Linux, but in spite of this (and here is the problem) the indexer
considers the C++ phrase
class DLL_API MyClass
to be a syntax error and stops further processing.
Is this a known problem and is there a way to circumvent it?

Thanks and best regards

Franz
Re: indexer glitch [message #792019 is a reply to message #785679] Mon, 06 February 2012 14:16 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Where do you define these macros? How do you distuinguish between Linux and Windows (i.e. which #ifdef)?

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Problem with running Elipse as root in Ubuntu Linux
Next Topic:Build without link
Goto Forum:
  


Current Time: Thu Apr 18 07:16:05 GMT 2024

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

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

Back to the top