Eclipse Cdt Extern C Syntax Error
Contents |
Things LocationTech Long-Term Support PolarSys Science OpenMDM More Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug Forums Mailing Lists Wiki IRC How to Contribute Working Groups Automotive Internet of Things LocationTech Long-Term Support eclipse disable syntax error PolarSys Science OpenMDM Toggle navigation Home Projects Forums Eclipse Community Forums Forum Search: Search eclipse packed syntax error Help Register Login Home Home» Language IDEs» C / C++ IDE (CDT)» Disable/ignore syntax errors? Show: eclipse c++ syntax error Today's Messages :: Show Polls :: Message Navigator Disable/ignore syntax errors? [message #230647] Mon, 23 February 2009 17:54 Eclipse User Originally posted by: kristleifur.gmail.com Hello list, I'm using the Eclipse CDT for NVIDIA
Eclipse C++11
CUDA development. It's pretty awesome. However, I'd like to disable some C++ syntax errors as there is a handful of CUDA keywords that the Eclipse parser doesn't like. Specifically, the keywords are extern "C" __global__ __device__ __shared__ Here are some screenshots to illustrate: * http://img18.imageshack.us/img18/1596/fullerrorlw6.png Here, the 'extern "C"' stuff throws the Eclipse parser off, see how the entire function is yellowed, and I lose autocompletion in the affected function. This is all legal CUDA code though. * http://img10.imageshack.us/img10/3447/halferrorqz8.png Here I've commented out the 'extern "C"' line. The Eclipse parser accepts the function, and autocompletion works. * http://img18.imageshack.us/img18/5014/noerrorkg0.png Just for fun, I've disabled the '__global__' keyword and the function now appears nice and clean to Eclipse. To begin with, I'd very much like to be able to disable these syntax error warnings. Just as a quick hack for easy living with CUDA. Is there any easy way to do this? Thanks! -- Kristleifur Report message to a moderator Re: Disable/ignore syntax errors? [message #230655 is a reply to message #230647] Mon, 23 February 2009 18:03 Eclipse User Originally posted by: kristleifur.gmail.com Kristleifur Dadason wrote: > Hello list, > > I'm using the Eclipse CDT for NVIDIA CUDA development. It's pretty > awesome. However, I'd like to disable some C++ syntax errors as there > is a handful of CUDA keywords that the Eclipse parser doesn't like. > > Specifically, the keywords are > extern "C" > __global__ > __device__ > __shared__ > > Here are some screenshots to illustrate: > > * http://img18.imageshack.us/img18/1596/fullerrorlw6.png > Here, the 'extern "C"' stuff throws the Eclipse parser off, see how > the entire function
CommunityMarketplaceEventsPlanet EclipseNewsletterVideosParticipateReport a BugForumsMailing ListsWikiIRCHow to ContributeWorking GroupsAutomotiveInternet of ThingsLocationTechLong-Term SupportPolarSysScienceOpenMDM Toggle navigation Bugzilla – Bug289654 Indexer does not work for types within extern "C" { ... } Last modified: 2009-10-21 09:13:16 EDT Home | New | Browse | Search | [?] | Reports | Requests | Help | Log In [x] | Forgot Password Login: [x] | Terms of Use | Copyright Agent First Last Prev Next This bug is not in your last search results. Bug289654 - Indexer does not work for types within extern "C" { ... } Summary: Indexer does not work for https://www.eclipse.org/forums/index.php/t/73791/ types within extern "C" { ... } Status: RESOLVED INVALID Product: CDT Classification: Tools Component: cdt-indexer Version: 6.0 Hardware: PC All Importance: P3 major (vote) TargetMilestone: --- Assigned To: Project Inbox QA Contact: Markus Schorn URL: Whiteboard: Keywords: Depends on: Blocks: Show dependency tree Reported: 2009-09-16 16:46 EDT by Israel Lins Albuquerque Modified: 2009-10-21 09:13 https://bugs.eclipse.org/bugs/show_bug.cgi?id=289654 EDT (History) CC List: 0 users See Also: Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Israel Lins Albuquerque 2009-09-16 16:46:10 EDT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Build Identifier: 20090619-0625 The bug 258292, solved now, is about the sintax error using this instruction. Now when I have types into the brackets theys aren't indexed... Previously I have used that way, but the
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/23984734/eclipse-shows-error-while-ndk-build-is-sucessful site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Eclipse shows syntax error error, while ndk_build is sucessful [duplicate] up vote 0 down vote favorite This question already has an answer here: Eclipse compiles successfully but still gives semantic errors 8 answers I am doing Java Native Development for android. And I use Android NDK and eclipse as IDE. Very frequently I write a C/C++ code in jni and eclipse shows errors such as: Could not be eclipse cdt extern resolved: JNIEXPORT JNICALL JNIEnv jobject jint But on the other hand ndk-build builds the .so file sucessfully without any error or even warnings. How to fix this in eclipse? If you need here is the code I compile: #include