[cmake-developers] [CMake 0015828]: Indexer doesn't work with C++11

Mantis Bug Tracker mantis at public.kitware.com
Tue Nov 3 05:10:12 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15828 
====================================================================== 
Reported By:                Franz Reinhardt
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15828
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-11-03 05:10 EST
Last Modified:              2015-11-03 05:10 EST
====================================================================== 
Summary:                    Indexer doesn't work with C++11
Description: 
*Environment*
cmake version 3.3.2
Eclipse IDE for C/C++ Developers	4.5.1.20150917-1200
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp
--disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE
Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64
--with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-version-specific-runtime-libs
--enable-linker-build-id --enable-linux-futex --program-suffix=-4.8
--without-system-libunwind --with-arch-32=i586 --with-tune=generic
--build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux)

*Short description*
if 


Steps to Reproduce: 
There's the source directory CmakeEclipseTest and an outof source build
directory:
cd into the build directory and call (please correct the paths according the
environment)
cmake -DCMAKE_ECLIPSE_VERSION=4.4 -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_PREFIX="/home/visionuser/CoreEngine-x86_64-Linux/main/CmakeEclipseTest/stage"
 -DCMAKE_PREFIX_PATH="/home/visionuser/CoreEngine-x86_64-Linux/Sandbox" -G
"Eclipse CDT4 - Unix Makefiles" -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE
/home/visionuser/CoreEngine-x86_64-Linux/main/CmakeEclipseTest

Then open eclipse and import the existing project in your workspace (the build
project). Then open main.cpp and rebuild the index. The std::smart_ptr will show
up red.

Additional Information: 
Most probably the creation of the .cproject file is done wrong:
<pathentry kind="mac" name="__cplusplus" path="" value="199711L"/>
Even when setting up the compiler to C++11 it creates the wrong __cplusplus
entry.

There are probably some duplicates of this bug, but their are related to
different platforms, and they are still not fixed.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-11-03 05:10 Franz ReinhardtNew Issue                                    
2015-11-03 05:10 Franz ReinhardtFile Added: CmakeEclipseTest.tgz                
   
======================================================================



More information about the cmake-developers mailing list