Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualnickme

Posted 25 November 2012 - 09:37 AM

hi cornstalks,

does it matter if i rename libSOIL.a to SOIL.lib?

i wonder why sfml get into the linker? i set the sfml libs to other project. i did not call sfml function in this project.

i only added the search directories. after i added lib folder to additional dependencies, i got the following errors:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_failure_reason already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_image_free already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc_guesssize already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_bmp already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_tga already defined in Soil.lib(stb_image_aug.o)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Soil.lib(stb_image_aug.o) : error LNK2001: unresolved external symbol __alloca
1>C:\Users\rob\DevC++ source\MSVC++\freeglut\fractal\Dynamical system and fractals\Fractals with Zoom\Release\Fractals with zoom.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

#4nickme

Posted 25 November 2012 - 12:44 AM

hi cornstalks,

does it matter if i rename libSOIL.a to SOIL.lib?

i wonder why sfml get into the linker? i set the sfml libs to other project.

i only added the search directories. after i added lib folder to additional dependencies, i got the following errors:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_failure_reason already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_image_free already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc_guesssize already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_bmp already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_tga already defined in Soil.lib(stb_image_aug.o)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Soil.lib(stb_image_aug.o) : error LNK2001: unresolved external symbol __alloca
1>C:\Users\rob\DevC++ source\MSVC++\freeglut\fractal\Dynamical system and fractals\Fractals with Zoom\Release\Fractals with zoom.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

#3nickme

Posted 25 November 2012 - 12:41 AM

hi cornstalks,

does it matter if i rename libSOIL.a to SOIL.lib?

i only added the search directories. after i added lib folder to additional dependencies, i got the following errors:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_failure_reason already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_image_free already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc_guesssize already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_bmp already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_tga already defined in Soil.lib(stb_image_aug.o)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Soil.lib(stb_image_aug.o) : error LNK2001: unresolved external symbol __alloca
1>C:\Users\rob\DevC++ source\MSVC++\freeglut\fractal\Dynamical system and fractals\Fractals with Zoom\Release\Fractals with zoom.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

#2nickme

Posted 25 November 2012 - 12:39 AM

hi cornstalks,

i only added the search directories. after i added lib folder to additional dependencies, i got the following errors:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_failure_reason already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_image_free already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc_guesssize already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_bmp already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_tga already defined in Soil.lib(stb_image_aug.o)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Soil.lib(stb_image_aug.o) : error LNK2001: unresolved external symbol __alloca
1>C:\Users\rob\DevC++ source\MSVC++\freeglut\fractal\Dynamical system and fractals\Fractals with Zoom\Release\Fractals with zoom.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

#1nickme

Posted 25 November 2012 - 12:36 AM

hi cornstalks,

i only added the search directories. i did added lib folder to additional dependencies.

PARTNERS