1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FreeBSD 6.2 - g++-4.1.2 Compilation error

Discussion in 'FreeBSD Development' started by spartan_2020, Dec 13, 2010.

  1. spartan_2020

    spartan_2020 New Member

    Messages:
    1
    Thanks Received:
    0
    Hi,

    I am getting the following linker error when I try to compile c++ code using g++-4.1.2.
    The error is as follows:

    Code:
    could not read symbols: Memory exhausted
    collect2: ld returned 1 exit status


    Could anybody let me know what is the cause for this error? I am using FreeBSD 6.2 virtual image with 2gigs of Memory. I tried to change the sysctl variables(vm.kmem_size) too but that didn't work.

    Thanks!
     
  2. sizemj

    sizemj New Member

    Messages:
    9
    Thanks Received:
    0
    Do you have a swap slice set up? I did a little research and this may do to a swap partition not working or not big enough.