Thread: Compilation problems in Linux

  1. #1

    Compilation problems in Linux

    Hi guys, I was hoping you might be able to help me with a problem I've had.

    I installed an older version of SUSE Linux from an old coverdisk I had and it's all working OK. It is a SUSELive product so it has to boot up from CD and it saves space too. Anyway, having copied a few of my old c programs from Uni. over to my hard disk (we use Red Hat at Uni.) it's not compiling them. I try to use gcc but it just says compilation error:

    /usr/i486-suse-linux/bin/ld: cannot find -lgcc

    which I guess means that it can't link it or something. If any of you guys could suggest anything I'd be exceedingly grateful.

    Cheers guys,

  2. #2
    Visionary Philosopher Sayeh's Avatar
    Join Date
    Aug 2002
    Use 'find'. To learn about 'find', at the terminal, enter 'man find' and press return.
    It is not the spoon that bends, it is you who bends around the spoon.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    The file you, or rather your compiler, is looking for is called libgcc.a

    Have you tried installing the latest version of gcc?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. vector compilation problems
    By Scarvenger in forum C++ Programming
    Replies: 3
    Last Post: 10-18-2007, 01:22 PM
  2. Dev-C++ Compilation Problems
    By Bnchs400 in forum Tech Board
    Replies: 4
    Last Post: 10-10-2007, 07:58 AM
  3. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  4. Compilation problems?
    By MagSteve in forum C++ Programming
    Replies: 1
    Last Post: 05-03-2004, 04:29 PM
  5. Linux To FreeBSD Porting Compile Problems
    By DeepBlackMagic in forum Linux Programming
    Replies: 4
    Last Post: 03-17-2004, 08:17 AM