Content Assist in Android studio with C\C++ is not working - c++

I have Android Studio 2.1.2, Android SDK 25, Andriod Ndk 11. Project starts and compiles well from Android Studio, but I couldn't use IDE, cause there is no Content Assist - ctrl+space and ctrl+click is not working in C\C++ sources for include and functions, the only message is - "cannot find declaration to go to" like here:
Somebody know how to solve the problem? For java sources everything works fine.

First Install the NDK bundle from Tools -> Android -> SDK Manager
Import the hello-jn sample using File -> Import Sample (Note: This sample is using the new gradle-experimental plugin)
Click Run -> Edit Configurations... and and a new Android Native configuration
Run and Debug Your App

I also have this problem! My solution is to re-set NDK path in "local.properties".
When i use default ndk path (ex: ndk.dir=C:\Users\%user\AppData\Local\Android\Sdk\ndk-bundle sdk.dir=C:\Users\%user\AppData\Local\Android\Sdk ) , I will have the same problem. So I download other NDK (from google official web-site) ,and set "ndk.dir", and I sloved.
You can try it~ maybe helpful for you.
ps. I use NDK version:14 , will happen this. I use v13 or v12 will solved.

Related

View the source code C++ in Eclipse - Ubuntu environtment

I had loaded the project to Eclipse but when I open the .cpp file, it like to open a text file.
Anyone know how to display the code-view in eclipse?
Please support.
Thank you so much.
I cannot find C/C++ in Window -> Preferences
Then you have no CDT installed – I suppose you got the version direct from the initial download page, but that's actually the java package – there's a link 'download packages' below, where you would have found the C++ package. Not too obvious, admitted.
Never mind, you don't need to re-install: Help -> About will reveil you your installed version's name ('Kepler', 'Luna', ...); via Help -> Install new packages you can add CDT plugin to your installation. Select under work with your release version of eclipse repository, e. g. http://download.eclipse.org/releases/photon.
Minimally, you need: C/C++ Development Tools, other plugins might be useful, too, like standalone debugger, call graph visualisation, unit testing support, auto tools support (configure, make; especially under linux), possibly LLVM support (if you want to use clang compiler), ...
My issue had been fixed.
Just do below steps in ubuntu:
Go to
https://www.eclipse.org/cdt/downloads.php and download newest CDT(C/C++ Develop Tool) version.
Copy the download file
eclipse-cpp-2018-12-R-linux-gtk-x86_64.tar.gz
to your folder in Ubuntu.
Extract
eclipse-cpp-2018-12-R-linux-gtk-x86_64.tar.gz
Run execute eclipse file -> Done.

No indexer option in Eclipse c++

I have installed Eclipse c++ helion on my windows 10 machine. Apart from this i have installed Egit plugin to import my git-tracked project. I can see that under window->preferences->c/c++->indexer the indexer is enabled. However, when I right click y project there is no index option. Does anybody know how to fix this? I've stucked here.

Intel Galileo and C++ REST SDK

I've successfully setup my Intel Galileo board (Gen 2) with the latest Windows IoT image (2/12/2014). I can boot the image without any issues, telnet into it and run a 'blink' application fine.
I've tried to run the 'Casablanca' sample and followed the instructions from http://ms-iot.github.io/content/Casablanca.htm. When I telnet into the Galileo board and try to run the console application I'm getting no output at all. When trying to debug from Visual Studio I can see the following output:
First-chance exception at 0x77CC342A (ntdll.dll) in WindowsIoTDemo.exe: 0xC0000139: Entry Point Not Found.
The program '[2016] WindowsIoTDemo.exe' has exited with code -1073741511 (0xc0000139) 'Entry Point Not Found'.
Has anyone been able to run the Casablanca sample application, or use the C++ REST SDK in a 'Windows for IoT' project at all?
I had the same problem when using the latest release of Casablanca, 2.3. In order to run the sample, I used Casablanca 2.2:
Since there doesn't appear to be a way to download the 2.3 source code from Codeplex, the only way I could see was to use Git:
git clone https://git01.codeplex.com/casablanca
git checkout 9cc7758d714b
At this point, you can follow the instructions in the Galileo sample to build cpprest120d_2_2.dll and copy it to the Galileo. Be sure to set the "No Enhanced Instructions" option.
Create a new project for the sample as directed, but don't use NuGet to install cpprestsdk. This will install the 2.3 version. Instead, you want to include the 2.2 version you built earlier...
Add the casablanca120.vcxproj project from your Git folder to your solution
In your sample project, add a Reference to the Casablanca DLL project: Project properties -> Common Properties -> References
Add the Casablanca 2.2 header folder to your sample project: Project properties -> Configuration Properties -> C/C++ -> General. Set the "Additional Include Directories" field to your-casablanca-folder\Release\include.
That's it - build and run.
Entry point not found error means there is a depending dll, in which some method is missing. To enable more diagnostic output, you can change registry key GlobalFlag=2 under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager. In my case the following methods is missing UnregisterClassW. This method is defined in User32.dll and if you compare User32.dll in you workstation Windows with the one in Galileo, you’ll see that these files are pretty much different.
You can find out on my blog how I fixed/workarounded the problem http://kardum.net/iot/intel-galileo-windows-application-azure-storage/

Import Eclipse workspace to netbeans (not regular Eclipse workspace)

I downloaded NetBeans IDE 7.3.1 and want to port my C++ projects from Eclipse IDE for C/C++ Developers Version 2.0.0 (it's my first installation of both IDEs, so there were no earlier versions on my PC - Win 7 32Bit)
As I tried the steps from Netbeans Support
I set up my Eclipse Workspace at E:\path. If I enter this path, according to
step 3:
In the Workspace Location page of the wizard, select the Import Projects from Workspace radio button and specify the workspace location. Click Next.
I am not able to go on importing because of the Error-Message:
*"E:\path" does not contain a regular Eclipse workspace.*
Does anyone have a clue of what's going on and / or know how to fix this? I stored all my Eclipse cpp projects in this folder by shifting them to subfolders like E:\path\Basics (Eclipse still recognizes the projects)
I would guess that you missed the import of the first sentence in your NetBeans support link. Here's the relevant portion with added emphasis...
An enhanced support for importing Eclipse projects is available in the
NetBeans IDE. The Import Eclipse Project wizard enables you to use
NetBeans to work on Java desktop and web application projects
that were created in Eclipse and MyEclipse.
You are trying to work on a C++ project and the wizard does not appear to be intended for that use.

Cygwin and Eclipse Helios setup

I am trying to learn C++ with Cygwin and Eclipse Helios.
I got all the development tools under Cygwin installed; and installed the CDT package for Helios.
The problem is I don't see an option to create a C++ project from makefile or any other option. I can only see options for a C Project, C++ project and a new project from existing source code.
Here is what I referred to:
Eclipse seminar
Developing applications using the Eclipse C/C++ Development Toolkit
Questions:
Is there any clear guide to setup Eclipse for Cygwin?
Am I missing something in the setup?
any other suggestion will be helpful.
Are you asking how to setup GCC in cygwin + Eclipse? How about this tutorial?
I found this tutorial to be a very good source. It was almostperfect, apart that one more path needed to be add to the folder containing cygstdc++-6.dll which prevented anything to be printed on console. So, add to the Project Properties -> C/C++ General -> Paths and Symbols -> Includes GNU C++ the path to the missing dll folder: ${CYGWIN_HOME}/usr/i686-pc-cygwin/sys-root/usr/bin.