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
Help needed - moving from Clang 3.1 to 3.3
-
- CodeLite Enthusiast
- Posts: 30
- Joined: Wed Oct 03, 2012 6:12 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- 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
what happens when you compile it outside of codelite?
try:
clang++ main.cpp
Eran
try:
clang++ main.cpp
Eran
Make sure you have read the HOW TO POST thread
-
- 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
Good idea. The exact same thing happens.
For good measure I tried it with source code like this:
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.
For good measure I tried it with source code like this:
Code: Select all
int main(int c, char **v) { return 0; }
=== 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.
-
- 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
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.
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.