Results 1 to 3 of 3

Thread: IJL in VC,link erro..

  1. #1
    Member Contributor
    Join Date
    Dec 2000
    Location
    Kaifeng,He'nan,PRC
    Posts
    69

    IJL in VC,link erro..

    why?
    Miss some setting in VC6 ?



    --------------------Configuration: jpeg - Win32 Debug--------------------
    Compiling...
    main.cpp
    Linking...
    main.obj : error LNK2001: unresolved external symbol "void __cdecl
    jpeg_destroy_compress(struct jpeg_compress_struct *)"
    (?jpeg_destroy_compress@@YAXPAUjpeg_compress_struc t@@@Z)
    main.obj : error LNK2001: unresolved external symbol "void __cdecl
    jpeg_finish_compress(struct jpeg_compress_struct *)"
    (?jpeg_finish_compress@@YAXPAUjpeg_compress_struct @@@Z)
    main.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl
    jpeg_write_scanlines(struct jpeg_compress_struct *,unsigned char *
    *,unsigned int)"
    (?jpeg_write_scanlines@@YAIPAUjpeg_compress_struct @@PAPAEI@Z)
    main.obj : error LNK2001: unresolved external symbol "void __cdecl
    jpeg_start_compress(struct jpeg_compress_struct *,unsigned char)"
    (?jpeg_start_compress@@YAXPAUjpeg_compress_struct@ @E@Z)
    main.obj : error LNK2001: unresolved external symbol "void __cdecl
    jpeg_set_quality(struct jpeg_compress_struct *,int,unsigned char)"
    (?jpeg_set_quality@@YAXPAUjpeg_compress_struct@@HE @Z)
    main.obj : error LNK2001: unresolved external symbol "void __cdecl
    jpeg_set_defaults(struct jpeg_compress_struct *)"
    (?jpeg_set_defaults@@YAXPAUjpeg_compress_struct@@@ Z)
    main.obj : error LNK2001: unresolved external symbol "void __cdecl
    jpeg_stdio_dest(struct jpeg_compress_struct *,struct _iobuf *)"
    (?jpeg_stdio_dest@@YAXPAUjpeg_compress_struct@@PAU _iobuf@@@Z)
    main.obj : error LNK2001: unresolved external symbol "void __cdecl
    jpeg_CreateCompress(struct jpeg_compress_struct *,int,unsigned int)"
    (?jpeg_CreateCompress@@YAXPAUjpeg_compress_struct@ @HI@Z)
    main.obj : error LNK2001: unresolved external symbol "struct jpeg_error_mgr
    * __cdecl jpeg_std_error(struct jpeg_error_mgr *)"
    (?jpeg_std_error@@YAPAUjpeg_error_mgr@@PAU1@@Z)
    Debug/jpeg.exe : fatal error LNK1120: 9 unresolved externals
    Error executing link.exe.

    jpeg.exe - 10 error(s), 0 warning(s)
    ========================
    As an old Chinese saying:One Live a Short while Die a Long...
    If I am useful to this world,I am reasonable to myself.
    =========================

  2. #2
    Guest

    Re: IJL in VC,link erro..

    Looks like your missing a library (.lib). However I couldn't tell off hand which one

  3. #3
    Member Contributor
    Join Date
    Dec 2000
    Location
    Kaifeng,He'nan,PRC
    Posts
    69

    Re: IJL in VC,link erro..

    I compiler the files into a lib:libjpeg.lib

    then i copy to the direction of "lib"

    then i copy the header file jpeglib.h and other into direction of "include\jpeg"

    i include the header jpeglib.h in my project,and add the lib in the setting dialogue box,i mean the vc6.

    but i get erro.

    ========================
    As an old Chinese saying:One Live a Short while Die a Long...
    If I am useful to this world,I am reasonable to myself.
    =========================

Similar Threads

  1. Replies: 5
    Last Post: 01-27-2012, 07:01 PM
  2. Knot multiplicity greater than order of curve erro
    By nigel martin ( Eley Metro in forum OpenGL: Windows
    Replies: 4
    Last Post: 09-21-2010, 03:07 AM
  3. link error
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-19-2001, 06:03 PM
  4. link
    By almok in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-20-2001, 10:01 AM
  5. Link errors
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-03-2000, 02:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean