Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Boost Eclipse vs CLI compilation strangeness(comparing eclipse build/compile with cli gives differences)
Boost Eclipse vs CLI compilation strangeness [message #1220691] Fri, 13 December 2013 05:58
Simon Bazley is currently offline Simon BazleyFriend
Messages: 1
Registered: December 2013
Junior Member
I'm trying to get back into coding C++ after a 12 year break, and thought I'd start with eclipse/cdt as my IDE.

Now I want to write something with JSON so found the attached example at https gist.github.com/mloskot/1509935 which is an example of using one of the libboost libraries for the purpose.

Now I create the file and compile it with g++ <file> and all works happily with no errors or warnings, But when I create an eclipse project with that one file in, I get lots of strange semantic errors and it fails to compile. Most notably:-

Description Resource Path Location Type
./src/main.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC SQL Meta C/C++ Problem

Description Resource Path Location Type
Invalid arguments '
Candidates are:
? * is_array_(const #0 &)
' main.cpp /SQL Meta/src line 20 Semantic Error


Checking out the outputs with -v they look pretty similar, The problems are coming up before link time, so I guess it's not missing libraries (although if it was, why is g++ picking them up from the path, and eclipse not, even though the path data is the same).

I'm thoroughly confused. Am I missing something fundamental, or does the eclipse problem checker, just not handle this kind of thing?
  • Attachment: main.cpp
    (Size: 0.80KB, Downloaded 260 times)
Previous Topic:cygwin64 gcc 4.8.2 link error
Next Topic:How does CDT detect the include path in makefile project?
Goto Forum:
  


Current Time: Sat Apr 27 01:10:00 GMT 2024

Powered by FUDForum. Page generated in 0.02540 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top