Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

C compiler

  • 12-09-2007 7:00pm
    #1
    Closed Accounts Posts: 58 ✭✭


    Hi,
    I'm being driven mad! Attempting to get a C compiler working on my desktop. First off I tried Dev-C++ and then tried other free ones but to no avail. I keep getting an error about "cc1" when doing it on CLI, and on Dev-C++ when attempting to compile I get the following error

    "Compiler: Default compiler
    Building Makefile: "C:\Users\Liam\Desktop\Makefile.win"
    Executing make...
    make.exe -f "C:\Users\Liam\Desktop\Makefile.win" all
    gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"

    gcc.exe: installation problem, cannot exec `cc1': No such file or directory

    make.exe: *** [main.o] Error 1

    Execution terminated"

    What's happening here? Thanks in advance.


Comments

  • Registered Users, Registered Users 2 Posts: 6,441 ✭✭✭jhegarty


    You need to set your path to include the bin folder of the complier


  • Closed Accounts Posts: 58 ✭✭Larry_o_C


    Done. Now I get
    "Compiler: Default compiler
    Building Makefile: "C:\Users\Liam\Desktop\Makefile.win"
    Executing make...
    make.exe -f "C:\Users\Liam\Desktop\Makefile.win" all
    gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"

    gcc.exe: installation problem, cannot exec `cc1': No such file or directory

    make.exe: *** [main.o] Error 1

    Execution terminated"


  • Closed Accounts Posts: 58 ✭✭Larry_o_C


    Just tried it with CodeBlocks IDE there and when trying to compile a helloworld program I get

    "Switching to target: default
    Compiling: main.c
    mingw32-gcc.exe: installation problem, cannot exec `cc1': No such file or directory
    Process terminated with status 1 (0 minutes, 0 seconds)
    0 errors, 0 warnings"

    What am I doing wrong? Please help!


    Edit: It's the CC1 file that's causing the problems. I know it exists, I see it but they don't. What is it anyways?


  • Registered Users, Registered Users 2 Posts: 6,571 ✭✭✭daymobrew


    Larry_o_C wrote:
    Edit: It's the CC1 file that's causing the problems. I know it exists, I see it but they don't. What is it anyways?
    Is the dir where CC1 is in the PATH?


  • Closed Accounts Posts: 58 ✭✭Larry_o_C


    Yeah, I'm going crazy!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,571 ✭✭✭daymobrew


    Larry_o_C wrote:
    Yeah, I'm going crazy!
    Have you tried to run CC1 yourself?


  • Registered Users, Registered Users 2 Posts: 1,636 ✭✭✭henbane




  • Registered Users, Registered Users 2 Posts: 1,287 ✭✭✭joe_chicken


    Or you could ditch all that gubbins and get Visual Studio Express C++


  • Closed Accounts Posts: 58 ✭✭Larry_o_C


    henbane wrote:
    I went into the compiler options and then once more tried to see what would work. What worked for me was this:

    1)add "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" to the binaries location under the directories tab
    2)go to the programs tab and add c:\dev-cpp\bin\ to all the listings.

    I then was able to compile my c programs completely and have them run correctly.

    .....anyone tell me how to do that? In simpler language :o

    I'll try Visual Studio C++ now


  • Closed Accounts Posts: 20 bumblebeeman


    Hey

    You could try the Tiny C Compiler. I use it for most things I write.

    the link is http://laurenssimonis.com/tcc/tcc-0.9.23.zip

    just download it to a folder on your hard disk(say C:\tcc), open a command line window and the compilation string for a file on your C drive is C:\tcc\tcc.exe -I c:\tcc\inc -L c:\inc\lib where -I is the switch for the include directory path and -L is the path for libfiles. TCC produces the smallest executables for any Windows C compiler


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 760 ✭✭✭mach1982


    Waht file extension are using , either .cpp or .cc should do.DEVC++ always work fine for me .


  • Closed Accounts Posts: 3,357 ✭✭✭Beano


    go to a command prompt, type in "set" press return and then post a screenshot. That way we can definitely rule out an enviroment variable problem.


Advertisement