Announcement

Collapse
No announcement yet.

Problem with gcc

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with gcc

    Hi there,

    I recently installed kubuntu on my desktop, but my problem is with gcc, I made the following assembly code:

    .text
    str : .asciz "Test"

    .global main
    main: movl %esp, %ebp
    push $str
    call printf
    movl $0,(%esp)
    call exit

    GCC gives the following error:
    /usr/bin/Id: ctr1.o No such file: No such file or directory
    collect2: Id returned 1 exit status

    Does anyone has a suggestion, how to correct the problem ?

    #2
    Re: Problem with gcc

    I'm far from an expert, but that doesn't look like C. gcc is the GNU C Compiler. Maybe this is the problem?

    Comment

    Working...
    X