Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Somedays ago, I updated my system(Ubuntu-32bit 12.04). Since it was a general update and not an upgrade, I didnt suspect anything could go wrong. Now my Codeblocks(12.11) is giving me troubles.

Everytime I try to compile/run something on codeblocks I get an error in Build messages saying :

 or  No such file or directory

=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===

While I can normally execute all the programs using gcc on command line.

Ex: for this program :

#include <stdio.h>
int main()
{
    printf("Hello world!\n");
    return 0;
}

The various error logs I have are :

Code::Blocks:

Build Log :

Compiling: /home/shagun/1.cpp
g++: error: or: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)

Build messages saying :

 or  No such file or directory

=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===

Further at paste.ubuntu.com

All the help I could find online was telling me how does #include "" differ from #include <> And I have followed the standard procedure of re installing Codeblocks many times by now.

Any help will be appreciated.

share|improve this question
    
Have you checked that you don't have any misplaced text in the CodeBlocks compiler settings (Settings --> Compiler and debugger...), especially in the 'Other options' tab? I can reproduce exactly these symptoms by adding the word 'or' there. –  steeldriver Dec 25 '13 at 13:54
    
@steeldriver The only thing I could find was "-std=c++0x or -std=gnu++0x" in linker setting. Though I am sure it could not have caused this issue, I removed this line just to be on the safe side and it did not help me. –  Shagun Dec 25 '13 at 17:26
    
For the time being, I have reverted to the previous version of codeblocks(10.05) –  Shagun Dec 28 '13 at 8:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.