Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse doesn't parse "using, boost and std::unique_ptr
Eclipse doesn't parse "using, boost and std::unique_ptr [message #1855567] Thu, 20 October 2022 16:01 Go to next message
Jack M is currently offline Jack MFriend
Messages: 1
Registered: October 2022
Junior Member
Eclipse IDE for C/C++ Developers
Version: 2019-06 (4.12.0)
Build id: 20190614-1200
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 14.0.2

Case 1: fail to parse std::unique_ptr
#include <memory>
std::unique_ptr<net::deadline_timer> m_timer;

Case 2: fail to parse OnMessageCB
#include "using_content.h"
OnMessageCB m_on_cb;

// file using_content.h
//
using OnMessageCB = std::function<void(long j)>;

Case 3> fail to parse boost type
const boost::posix_time::seconds m_timer{0};


Question> In all the above cases, the eclipse fails to parse those code and show red line under those code.

Is there a way that I can fix it?


What I have done so far?
C++Build => Settings => Tool Settings => GCC C++ Compiler => Includes
"C:\boost\boost_1_72_0"

Thank you

[Updated on: Thu, 20 October 2022 20:23]

Report message to a moderator

Re: Eclipse doesn't parse "using, boost and std::unique_ptr [message #1855592 is a reply to message #1855567] Sat, 22 October 2022 07:12 Go to previous message
Kent Dorfman is currently offline Kent DorfmanFriend
Messages: 21
Registered: December 2020
Junior Member
Case 1: fail to parse std::unique_ptr
#include <memory>
std::unique_ptr<net::deadline_timer> m_timer;


nothing wrong with the pointer. the problem is an incorrect namespace for deadline_timer
Previous Topic:How to run Freertos on Arduino UNO using eclipse IDE
Next Topic:How could I resolve a non-working Eclipse indexer?
Goto Forum:
  


Current Time: Sun Jan 19 23:56:50 GMT 2025

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

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

Back to the top