Forum: PS3 Technical Development - Topics relating to Playstation 3 Technical development ONLY! Read and discuss the latest Cobra USB updates, tutorials and explanations or find out about bluray drive bypass firmwares plus much more.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: psl1ght woes
  

Results 1 to 8 of 8
  1. #1 psl1ght woes 
    Slynk is offline Member
    Join Date
    Sep 2010
    Posts
    754
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    361
    I hate this. I've been trying over and over to separate my projects into multiple files but PSL1GHT REFUSES to link them. The psl1ght template separates .h into the include folder and .c / .cpp into the source. However when I do this, I get a link error:

    Code:
    undefined reference to `.waitFlip()'
    undefined reference to bla bla bla
    I'm including the header

    #include "buffer.h"

    which is in the damn include folder but it wont compile *sigh*
    Reply With Quote  

  2. #2  
    daxtsu is offline Member
    Join Date
    Jul 2008
    Posts
    128
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Slightly offtopic, but while we're on the subject of woes, I can't get the damn ps3toolchain to compile from toolchain.sh. I have to run each script individually and close out cygwin after each one or I get fork: resource unavailable errors. Quite "lovely".
    Reply With Quote  

  3. #3  
    apechimp is offline Registered User
    Join Date
    Jan 2011
    Posts
    3
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    If that is in the include folder, I would think you need to do

    Code:
    #include <buffer.h>
    Reply With Quote  

  4. #4  
    Slynk is offline Member
    Join Date
    Sep 2010
    Posts
    754
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    361
    Nope I've tried that and these as well:

    "../include/buffer"
    <../include/buffer>

    : /
    Reply With Quote  

  5. #5  
    Slynk is offline Member
    Join Date
    Sep 2010
    Posts
    754
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    361
    Got bit further... just renamed the .c files to .cpp and had to alter a few things but now I'm getting a multiple definition error:

    Code:
    main.o:(.bss.sconsole+0x0): multiple definition of `sconsole'
    buffer.o:(.bss.sconsole+0x0): first defined here
    sconsole.o:(.bss.sconsole+0x0): multiple definition of `sconsole'
    buffer.o:(.bss.sconsole+0x0): first defined here
    sconsole.h is prefixed correctly:

    Code:
    #ifndef SCONSOLE_H_
    #define SCONSOLE_H_
    
    ...
    #endif
    : /
    Reply With Quote  

  6. #6  
    Slynk is offline Member
    Join Date
    Sep 2010
    Posts
    754
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    361
    Ug, after much work, I got it to work. Had to move the deceleration of the variable sconsole to its .cpp file.
    Reply With Quote  

  7. #7  
    Ben Jeremy's Avatar
    Ben Jeremy is online now Developer and master of common sense
    Join Date
    Aug 2010
    Posts
    737
    Downloads
    4
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    92
    Quote Originally Posted by Slynk View Post
    Got bit further... just renamed the .c files to .cpp and had to alter a few things but now I'm getting a multiple definition error:

    Code:
    main.o:(.bss.sconsole+0x0): multiple definition of `sconsole'
    buffer.o:(.bss.sconsole+0x0): first defined here
    sconsole.o:(.bss.sconsole+0x0): multiple definition of `sconsole'
    buffer.o:(.bss.sconsole+0x0): first defined here
    sconsole.h is prefixed correctly:

    Code:
    #ifndef SCONSOLE_H_
    #define SCONSOLE_H_
    
    ...
    #endif
    : /
    Is there something defined inline in sconsole that is generating code or data? Obviously, if it's included in two .c files, it will generate duplicate symbols for whatever is defined inline in sconsole.h

    What is that file?
    Working hard on UberCFW, incorporating NTFS, sub-free NetFlix and Blockbuster, PSN cheat system with built-in swearbot and MAC-spoofing, Adding MKV, RAM and BIK movie support, and Xbox360 emu*.

    *not really. Get a life, newbs...

    My YouTube channel: http://www.youtube.com/user/BenJeremy
    Reply With Quote  

  8. #8  
    Slynk is offline Member
    Join Date
    Sep 2010
    Posts
    754
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    361
    I fixed it by moving a deceleration. It wasn't inline. I have no clue why it was being defined multiple times. But it's fixed.
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •