#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    3
    Rep Power
    0

    file not recognized: File truncated


    I've been trying to make intergrate a website with HSBC's secure e-payments system. I'm trying to compile a test c file (TestHash.c), but am having trouble. I am not a very experienced c programmer!

    I am trying to compile the file using:

    cc -o TestHash.out -I./ TestHash.c

    but this gives:
    /tmp/ccVoRbGe.o: In function `main':
    /tmp/ccVoRbGe.o(.text+0x4e): undefined reference to `GenerateHash'
    /tmp/ccVoRbGe.o(.text+0xa0): undefined reference to `DestroyHash'
    collect2: ld returned 1 exit status

    So i guessed it's looking for the library file.

    I am now trying:

    cc -o TestHash.out -I./ TestHash.c /cpi/libCcCpiTools.so

    but its giving the error:

    /home/usr126482/cpi/libCcCpiTools.so: file not recognized: File truncated
    collect2: ld returned 1 exit status

    Is there somthing wrong with th .so file (that would be my guess), or am i doing somthing wrong with the compiling?

    Thanks,
    Daniel.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    1
    Rep Power
    0

    Lightbulb


    Hi,

    I had the same problem - call HSBC support on 0116 2818548 and they will send you the updated files via email.



    Matt
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    3
    Rep Power
    0
    After spending a while messing around with it last week, i did exactly that! they sent me a new lib file, and it worked fine!

    Thanks,
    Daniel.

IMN logo majestic logo threadwatch logo seochat tools logo