Undefined JPEG_Decompress()

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

  1. diego_pmc
    OP

    diego_pmc Advanced Member

    Newcomer
    52
    0
    Sep 8, 2009
    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

    nIxx GBAtemp Advanced Maniac

    Member
    1,518
    76
    Sep 30, 2007
    Gambia, The
    Germany
    This should be totally fine are you sure you have included the libjpeg header files ?
     
  3. diego_pmc
    OP

    diego_pmc Advanced Member

    Newcomer
    52
    0
    Sep 8, 2009
    United States
  4. diego_pmc
    OP

    diego_pmc Advanced Member

    Newcomer
    52
    0
    Sep 8, 2009
    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