Ps2 visual studio integration

Discussion in 'Sony Programming and Development' started by the7thchild, Oct 16, 2017.

  1. the7thchild

    the7thchild Spirited Member

    Joined:
    Feb 7, 2011
    Messages:
    103
    Likes Received:
    26
    image.png anyone who know how to fix this error during vsi 6.0 project compile?
     
  2. emilisb

    emilisb Active Member

    Joined:
    Dec 8, 2016
    Messages:
    42
    Likes Received:
    14
    You probably forgot to include the library file
     
  3. rso

    rso Gone. See y'all elsewhere, maybe.

    Joined:
    Mar 26, 2010
    Messages:
    2,190
    Likes Received:
    447
    show the command that causes the error, please
     
  4. the7thchild

    the7thchild Spirited Member

    Joined:
    Feb 7, 2011
    Messages:
    103
    Likes Received:
    26
    The error message is as below:
    --------------------Configuration: deform - Win32 PS2 EE Release--------------------
    Compiling...
    snCL -- Compile Settings: DebugInfo:OFF Define:SN_TARGET_PS2 Optimize:2
    [VC6] deform.c
    [PS2] deform.c
    [PS2] metal.dsm
    [PS2] sphere.dsm
    Linking...
    [PS2] deform.elf
    ps2ld 2.3.7.513 @ C:\Program Files\ProDG for PlayStation2\ps2ld.exe
    C:/usr/local/sce/ee/lib/crt0.s(1) : error: L0039:Reference to undefined symbol _init in file C:\USR\LOCAL\SCE\EE\SAMPLE\VU1\deform\crt0.o
    C:/usr/local/sce/ee/lib/crt0.s(1) : error: L0039:Reference to undefined symbol _init in file C:\USR\LOCAL\SCE\EE\SAMPLE\VU1\deform\crt0.o
    C:/usr/local/sce/ee/lib/crt0.s(1) : error: L0039:Reference to undefined symbol _fini in file C:\USR\LOCAL\SCE\EE\SAMPLE\VU1\deform\crt0.o
    C:/usr/local/sce/ee/lib/crt0.s(1) : error: L0039:Reference to undefined symbol _fini in file C:\USR\LOCAL\SCE\EE\SAMPLE\VU1\deform\crt0.o
    PS2CC Error : Link Failed.
    Deleting PS2_EE_Release\deform.elf
    Error executing snLink.exe.
    deform.elf - 5 error(s), 0 warning(s)
     
  5. emilisb

    emilisb Active Member

    Joined:
    Dec 8, 2016
    Messages:
    42
    Likes Received:
    14
    Just check your libraries like I told you. This is a linking error. You get undefined symbol errors because you probably don’t load *.a files of some of the lib.
     
  6. rso

    rso Gone. See y'all elsewhere, maybe.

    Joined:
    Mar 26, 2010
    Messages:
    2,190
    Likes Received:
    447
    "Some of the lib", yeah... that looks very much like it's libc, which should be added automagically. That is, unless you circumvent the compiler and try to drive the linker (ld) directly, which may or may not be happening here - can't tell from seeing just the output, but not the actual commands executed (looks like you'd need to increase the build verbosity level somewhere).
    You could try adding a "-lc" in there somewhere, and it might even make things work for the moment, but that'd only mask the underlying problem if I'm correct and might bite you in the ass again later.
     
  7. the7thchild

    the7thchild Spirited Member

    Joined:
    Feb 7, 2011
    Messages:
    103
    Likes Received:
    26
    ProDg VSI should work out of the box. Does anyone tried to use ProDG 3.0.1 and complie a sample? Please share your experience. Thanks! ps2 we are talking about
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page