Search code examples
c++static-linkinggoogle-nativeclient

pnacl-ld: Invalid archive member header magic string


While creating a pexe from the libraries I am getting below error:

pnacl-ld: .a: Invalid archive member header magic string /30 1370435922 1000 1000 100664 103140 `

Any idea what is going wrong here?


Solution

  • The lib file was having file other than .o file. The was having cpp file (renamed to .orig by git)

    This was creating a problem. I came to know when I did

    $less < libname >

    Which gave me list of files in .a