Eclipse CDT shows semantic errors, but compilation is ok


#1

I’m trying to deploy the scidb on Eclipse + CDT on Ubuntu.
After importing the project into Eciipse, the compilation is OK(by useing project->build all).
But Eclipse shows there are more than one hundred errors.
such as

Description Resource Path Location Type
’std’ is ambiguous ‘
Candidates are:
’ iquery.cpp /scidb/utils/iquery line 67 Semantic Error

Description Resource Path Location Type
Function ‘string’ could not be resolved Array.cpp /scidb/src/array line 74 Semantic Error

Description Resource Path Location Type
Invalid arguments ‘
Candidates are:
? getCoordinateIndexArrayName(?)
’ iquery.cpp /scidb/utils/iquery line 136 Semantic Error

How to fix it ?
thanks !


#2

the include path in my setting is

/usr/include
/usr/include/google/protobuf
/usr/include/postgresql
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.4/include
/usr/lib/gcc/x86_64-linux-gnu/4.4/include-fixed
/usr/include/c++/4.4
/usr/include/c++/4.4/x86_64-linux-gnu
/usr/include/c++/4.4/backward

/usr/include/log4cxx
/usr/include/boost


#3

Eclipse ey? Are you planning to modify any of the sources?

George


#4

[quote=“Xianmang”]I’m trying to deploy the scidb on Eclipse + CDT on Ubuntu.
After importing the project into Eciipse, the compilation is OK(by useing project->build all).
But Eclipse shows there are more than one hundred errors.
such as

Description Resource Path Location Type
’std’ is ambiguous ‘
Candidates are:
’ iquery.cpp /scidb/utils/iquery line 67 Semantic Error

Description Resource Path Location Type
Function ‘string’ could not be resolved Array.cpp /scidb/src/array line 74 Semantic Error

Description Resource Path Location Type
Invalid arguments ‘
Candidates are:
? getCoordinateIndexArrayName(?)
’ iquery.cpp /scidb/utils/iquery line 136 Semantic Error

How to fix it ?
thanks ![/quote]

Hi,

how do you generate project for Eclipse? I use Eclipse for working on SciDB on my daily basis and never got such problems… Usually I just do on clean source tree:

and then import generated project into Eclipse.


#5

Hi,Artyom Smirnov, I Will try the method you provided.
thanks!

[quote=“Artyom Smirnov”][quote=“Xianmang”]I’m trying to deploy the scidb on Eclipse + CDT on Ubuntu.
After importing the project into Eciipse, the compilation is OK(by useing project->build all).
But Eclipse shows there are more than one hundred errors.
such as

Description Resource Path Location Type
’std’ is ambiguous ‘
Candidates are:
’ iquery.cpp /scidb/utils/iquery line 67 Semantic Error

Description Resource Path Location Type
Function ‘string’ could not be resolved Array.cpp /scidb/src/array line 74 Semantic Error

Description Resource Path Location Type
Invalid arguments ‘
Candidates are:
? getCoordinateIndexArrayName(?)
’ iquery.cpp /scidb/utils/iquery line 136 Semantic Error

How to fix it ?
thanks ![/quote]

Hi,

how do you generate project for Eclipse? I use Eclipse for working on SciDB on my daily basis and never got such problems… Usually I just do on clean source tree:

and then import generated project into Eclipse.[/quote]


#6

Hi, I got below err msgs for cmake -G’Eclipse CDT4 - Unix Makefiles’.

Thanks in advance for any help

[code]-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
DISTRO_NAME_VER is Darwin
CMake Error at /Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:1191 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost’s headers.
Call Stack (most recent call first):
CMakeLists.txt:150 (find_package)

CMake Error at /Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find Protobuf (missing: PROTOBUF_INCLUDE_DIR PROTOBUF_LIBRARY
PROTOBUF_PROTOC_EXECUTABLE)
Call Stack (most recent call first):
/Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindProtobuf.cmake:74 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:151 (find_package)

– Configuring incomplete, errors occurred![/code]