I'm using VS.net 2003

Is there a way to include libs in a lib and not getting 500 warnings telling you
warning LNK4006: _png_set_compression_strategy already defined in libpng.lib(pngwrite.obj); second definition ignored

My main problem is that if I include just the code in the .h files, they seems to not be included in my lib. So I need to add them to Additional dependencies if I want that those functions been export in my libraries so I just have my librarie and not 3 libraries to put.

Mainly 3 questions

1) Why .h are not put in my librarie? (If I add one .h in my solution, the .lib resulting won't be bigger and I get Unresolved external symbol when I use the .lib elsewhere.)
2) Is there a way to just include the 3 libraries and not getting duplicated libraries? Because If I don't put the .h in the file, in compile time the compiler don't check the libraries I put it on)

When I put the libraries in my librarie, I get 2 unresolved external symbol and when I put the .h, I got 27 unresolved.


Code:
//Errors when I use my library that has compiled without any warnings using the .h files

Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_destroy_decompress referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_finish_decompress referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_read_scanlines referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_start_decompress referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_read_header referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_stdio_src referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_CreateDecompress referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadJPG.obj) : error LNK2019: unresolved external symbol _jpeg_std_error referenced in function "bool __cdecl LoadFileJPEG(class HString const &,class Texture *,bool)" (?LoadFileJPEG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_read_end referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_read_image referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_set_packing referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_set_strip_16 referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_set_tRNS_to_alpha referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_get_valid referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_set_gray_1_2_4_to_8 referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_set_palette_to_rgb referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_get_color_type referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_get_bit_depth referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_get_image_height referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_get_image_width referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_read_info referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_set_sig_bytes referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_init_io referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_destroy_read_struct referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_create_info_struct referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_create_read_struct referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
Gob.lib(Gob_LoadPNG.obj) : error LNK2019: unresolved external symbol _png_check_sig referenced in function "bool __cdecl LoadFilePNG(class HString const &,class Texture *,bool)" (?LoadFilePNG@@YA_NABVHString@@PAVTexture@@_N@Z)
or should I use the libraries included in my librarie. When I use it in my other program, I get 3 error(s), 16 warning(s)

Code:
Gob.lib(pngread.obj) : warning LNK4217: locally defined symbol _abort imported in function _png_create_read_struct_2
Gob.lib(pngread.obj) : warning LNK4217: locally defined symbol _sprintf imported in function _png_create_read_struct_2
Gob.lib(pngrtran.obj) : warning LNK4049: locally defined symbol _sprintf imported
Gob.lib(png.obj) : warning LNK4049: locally defined symbol _sprintf imported
Gob.lib(pngrutil.obj) : warning LNK4217: locally defined symbol _sprintf imported in function _png_decompress_chunk
Gob.lib(pngrio.obj) : warning LNK4217: locally defined symbol _fread imported in function _png_default_read_data
Gob.lib(pngmem.obj) : warning LNK4217: locally defined symbol _malloc imported in function _png_create_struct_2
Gob.lib(zutil.obj) : warning LNK4049: locally defined symbol _malloc imported
Gob.lib(pngmem.obj) : warning LNK4217: locally defined symbol _free imported in function _png_destroy_struct_2
Gob.lib(zutil.obj) : warning LNK4049: locally defined symbol _free imported
Gob.lib(pngerror.obj) : warning LNK4217: locally defined symbol _strncpy imported in function _png_format_buffer
Gob.lib(pngset.obj) : warning LNK4049: locally defined symbol _strncpy imported
Gob.lib(pngerror.obj) : warning LNK4217: locally defined symbol _fprintf imported in function _png_default_error
Gob.lib(pngrutil.obj) : warning LNK4217: locally defined symbol _fprintf imported in function _png_crc_finish
Gob.lib(pngerror.obj) : warning LNK4217: locally defined symbol __iob imported in function _png_default_error
Gob.lib(pngrutil.obj) : warning LNK4217: locally defined symbol __iob imported in function _png_crc_finish



// And here comes the errors...

Gob.lib(pngerror.obj) : error LNK2019: unresolved external symbol __imp__longjmp referenced in function _png_default_error
Gob.lib(pngrutil.obj) : error LNK2019: unresolved external symbol __imp__strtod referenced in function _png_handle_sCAL
OpenGLTexMgr.exe : fatal error LNK1120: 2 unresolved externals
The libs used outside my lib are not doing any unresolved external!!


I'M a bit confused on the way to add those libraries in my code, sorry if the thread is really not clear! My head is not clear on this subject.

Thanx for the help