Help needed - moving from Clang 3.1 to 3.3

General questions regarding the usage of CodeLite
Arbalest
CodeLite Enthusiast
Posts: 30
Joined: Wed Oct 03, 2012 6:12 am
Genuine User: Yes
IDE Question: C++
Contact:

Help needed - moving from Clang 3.1 to 3.3

Post by Arbalest »

I'm embarrassed to ask this but I can't tell if this is a configuration problem or an installation problem -- or how to deal with either.

I just upgraded clang from 3.1 to 3.1 (downloaded the .tar.bz2, opened archive, copied directories to corresponding places in /usr). Now when I compile the simple test program (which worked before) I get this

/usr/bin/clang++: 1: /usr/bin/clang++: Syntax error: "(" unexpected and I don't think it is referring to the source code.

Can someone point me in the right direction on this?

I am using CodeLite 5.1 on Ubuntu 12.04
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help needed - moving from Clang 3.1 to 3.3

Post by eranif »

what happens when you compile it outside of codelite?
try:
clang++ main.cpp

Eran
Make sure you have read the HOW TO POST thread
Arbalest
CodeLite Enthusiast
Posts: 30
Joined: Wed Oct 03, 2012 6:12 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help needed - moving from Clang 3.1 to 3.3

Post by Arbalest »

Good idea. The exact same thing happens.

For good measure I tried it with source code like this:

Code: Select all

int main(int c, char **v) { return 0; }
The same happens. I'll try copying the Clang files to the appropriate directories one more time - but any advice is appreciated.

=== update ===

I've tried every which way to install 3.3 short of building from source. There is always some problem or other so I'll just stay with 3.2. Thanks.
Arbalest
CodeLite Enthusiast
Posts: 30
Joined: Wed Oct 03, 2012 6:12 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help needed - moving from Clang 3.1 to 3.3

Post by Arbalest »

The previously available LaunchPad PPA for Clang-3.3 was problematic for me but the new one here worked just fine.

https://launchpad.net/~h-rayflood/+archive/llvm

As a general note to others who come across this thread, the new compiler executable is called clang-3.3 (and clang++-3.3). Rather than renaming it "clang" (so the IDE can find it) it seemed like a better idea for me to change the compiler name (under Settings > Build Settings) so I can switch back and forth among versions.
Post Reply