Undefined JPEG_Decompress()

Discussion in 'Wii - Emulation and Homebrew' started by diego_pmc, Feb 1, 2010.

Feb 1, 2010
  1. diego_pmc
    OP

    Newcomer diego_pmc Advanced Member

    Joined:
    Sep 8, 2009
    Messages:
    52
    Country:
    United States
    I am having some problems with my code. When it tries to link the objects and create the *.dol file it gives me an error that says:
     
  2. nIxx

    Member nIxx GBAtemp Maniac

    Joined:
    Sep 30, 2007
    Messages:
    1,459
    Location:
    Germany
    Country:
    Germany
    This should be totally fine are you sure you have included the libjpeg header files ?
     
  3. diego_pmc
    OP

    Newcomer diego_pmc Advanced Member

    Joined:
    Sep 8, 2009
    Messages:
    52
    Country:
    United States
  4. diego_pmc
    OP

    Newcomer diego_pmc Advanced Member

    Joined:
    Sep 8, 2009
    Messages:
    52
    Country:
    United States
    Phew, I solved it by changing line 27 from jpgogc.h with this:
    Code:
    #if defined(__cplusplus)
    extern "C"
    {
    #endif
    
    int JPEG_Decompress(JPEGIMG * jpgimg);
    
    #if defined(__cplusplus)
    }
    #endif
     

Share This Page