score:-1

excuse me about my spelling mistakes, i am student and i study english now. my project has the same problem. i had to spend all day to find solution :). in your root project folder you need to open file ".cproject" and add the following text:

<option is_builtin_empty="false" is_value_empty="false" id="com.android.gcc.option.definedsymbols.156386137" superclass="com.android.gcc.option.definedsymbols" valuetype="definedsymbols">
                                    <listoptionvalue builtin="false" value="__android__=0"/>
</option>  

i do not know what the numbers mean in the end of id section, but i freely changed them and everything was ok.

this text adds symbol __android__. moreover tab "symbols" becomes visible:

this text adds symbol <code>__android__</code>. moreover tab "symbols" becomes visible

notice that __android__ has value 0. you can check it if you open preferences->c/c++ general/path and symbols/symbols (now it is here)

proof of appearing __symbols__ section in eclipse:

proof of appearing <code>__symbols__</code> section in eclipse

finally, a chunk of my __.cproject__ file:

<storagemodule moduleid="cdtbuildsystem" version="4.0.0">
    <configuration artifactname="${projname}" buildproperties="" description="" id="com.android.toolchain.gcc.665394794" name="default" optionalbuildproperties="" parent="org.eclipse.cdt.build.core.emptycfg">
        <folderinfo id="com.android.toolchain.gcc.665394794.1631346437" name="/" resourcepath="">
            <toolchain id="com.android.toolchain.gcc.1551434208" name="android gcc" superclass="com.android.toolchain.gcc">
                <targetplatform binaryparser="org.eclipse.cdt.core.elf" id="com.android.targetplatform.1128161810" isabstract="false" superclass="com.android.targetplatform"/>
                <builder id="com.android.builder.1391955059" keepenvironmentinbuildfile="false" managedbuildon="false" name="android builder" superclass="com.android.builder">
                    <outputentries>
                        <entry flags="value_workspace_path|resolved" kind="outputpath" name=""/>
                    </outputentries>
                </builder>
                <tool id="com.android.gcc.compiler.541863979" name="android gcc compiler" superclass="com.android.gcc.compiler">
                    <option is_builtin_empty="false" is_value_empty="false" id="com.android.gcc.option.includepath.156366136" superclass="com.android.gcc.option.includepath" valuetype="includepath">
                        <listoptionvalue builtin="false" value="&quot;c:\frameworks\androidndk\platforms\android-19\arch-arm\usr\include&quot;"/>
                        <listoptionvalue builtin="false" value="&quot;c:\mingw\include&quot;"/>
                        <listoptionvalue builtin="false" value="&quot;c:\frameworks\androidndk\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\lib\gcc\arm-linux-androideabi\4.9.x\include&quot;"/>
                        <listoptionvalue builtin="false" value="&quot;c:\frameworks\androidndk\sources\android\native_app_glue&quot;"/>
                    </option>
                    <option is_builtin_empty="false" is_value_empty="false" id="com.android.gcc.option.definedsymbols.156386137" superclass="com.android.gcc.option.definedsymbols" valuetype="definedsymbols">
                        <listoptionvalue builtin="false" value="__android__=0"/>
                    </option>
                    <inputtype id="com.android.gcc.inputtype.661587658" superclass="com.android.gcc.inputtype"/>
                </tool>
            </toolchain>
        </folderinfo>
        <sourceentries>
            <entry flags="value_workspace_path|resolved" kind="sourcepath" name="jni"/>
        </sourceentries>
    </configuration>
</storagemodule>

hope this information will be useful.

score:2

i was having the same issue with the missing symbols tab, i finally started poking around and discovered that the tabs are different for every toolchain. the android gcc toolchain in particular does not have a symbols tab for some reason. (seems like a bug to me)

to change the current toolchain: properties -> c/c++ build -> tool chain editor

i had to uncheck display compatible toolchains only then i chose the option cygwin gcc and set current builder to android builder

the symbols tab now shows up.

as far as i can tell everything seems to be working the same as it was with the android gcc toolchain. if there are any bad side effects to this approach, i am unaware of what they are. if i find anything, i will come back and update my answer.


Related Query

More Query from same tag