Trouble building SublimeClang

19 views
Skip to first unread message

Jeremy Klein

unread,
Feb 20, 2018, 3:15:55 PM2/20/18
to Chromium-dev, James Cook, Ryan Hansberry, Jordy Greenblatt, Kyle Horimoto
Hey Folks,

I'm hoping to get SublimeClang working for Chromium development and have been following these instructions to do so. However, I'm having some trouble actually getting "make" to work on SublimeClang itself. I've ensured that I copied over libclang 3.9 as specified in the instructions, but still no luck. There are a tonnnn of compiler errors like:

usr/local/google/home/jlklein/.config/sublime-text-3/Packages/SublimeClang/src/main.cpp:218:39: error: template argument 1 is inva
lid
 typedef std::vector<shared_ptr<Entry> > EntryList;
                                       ^
/usr/local/google/home/jlklein/.config/sublime-text-3/Packages/SublimeClang/src/main.cpp:218:39: error: template argument 2 is inva
lid
/usr/local/google/home/jlklein/.config/sublime-text-3/Packages/SublimeClang/src/main.cpp: In function ‘void trim(EntryList&)’:
/usr/local/google/home/jlklein/.config/sublime-text-3/Packages/SublimeClang/src/main.cpp:601:25: error: qualified-id in declaration
 before ‘i’
     EntryList::iterator i = mEntries.begin();
                         ^
/usr/local/google/home/jlklein/.config/sublime-text-3/Packages/SublimeClang/src/main.cpp:603:12: error: ‘i’ was not declared in thi
s scope
     while (i != mEntries.end() && (*i)->display[0] == '\t')
            ^
/usr/local/google/home/jlklein/.config/sublime-text-3/Packages/SublimeClang/src/main.cpp:603:26: error: request for member ‘end’ in
 ‘mEntries’, which is of non-class type ‘EntryList {aka int}’
     while (i != mEntries.end() && (*i)->display[0] == '\t')
                          ^~~
/usr/local/google/home/jlklein/.config/sublime-text-3/Packages/SublimeClang/src/main.cpp:605:18: error: request for member ‘erase’ 
in ‘mEntries’, which is of non-class type ‘EntryList {aka int}’
         mEntries.erase(i);


...

and dozens more. Has anyone run into anything like this in the past? I'd really love to get this working correctly!

Thanks,
Jeremy

Alexey Baskakov

unread,
Feb 22, 2018, 8:14:53 AM2/22/18
to Chromium-dev, jame...@google.com, hans...@google.com, jord...@google.com, khor...@google.com
Just replace shared_ptr with std::shared_ptr in that main.cpp file.
It helped me.

Jeremy Klein

unread,
Feb 22, 2018, 1:13:28 PM2/22/18
to lo...@chromium.org, Chromium-dev, jame...@google.com, hans...@google.com, jord...@google.com, khor...@google.com
Thanks, Alexey! I'll give that a shot.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/hAwtjGVsez4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/df33e870-c623-423a-8a2d-7bca0c703317%40chromium.org.
Reply all
Reply to author
Forward
0 new messages