Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: static sf::graphics library fails to link  (Read 2243 times)

0 Members and 1 Guest are viewing this topic.

fredrick

  • Newbie
  • *
  • Posts: 20
    • View Profile
static sf::graphics library fails to link
« on: October 21, 2012, 03:45:47 am »
https://github.com/SFML/SFML/commit/26fa99f1975e1bcd6ac4adbefa23195d7124eca3

Change above, broke my compilation building SFML in static mode, the SFML graphics module failed while the others built fine.

A few revisions before (which was my backup) builds fine.

SFML_STATIC set, MT set, SFML sln generated via CMAKE for VS 2012, static. Also the SFML example opengl, fails.


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: static sf::graphics library fails to link
« Reply #1 on: October 21, 2012, 09:44:47 am »
Is it really hard to post in "Help" > "Graphics" rather than in "General Discussions", which is described as "For everything that is not a help request"? >:( >:( >:(

Quote
the SFML graphics module failed
Quote
Also the SFML example opengl, fails
Fails how?
Laurent Gomila - SFML developer

fredrick

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: static sf::graphics library fails to link
« Reply #2 on: October 21, 2012, 02:45:57 pm »
I was hoping to prevent printing this, but here you go (You have dll export in your static ext libraries, which is wrong)

Quote
15>sfml-graphics-s-d.lib(ftbase.obj) : warning LNK4217: locally defined symbol _strrchr imported in function _raccess_make_file_name
15>sfml-graphics-s-d.lib(type1.obj) : warning LNK4049: locally defined symbol _memmove imported
15>sfml-graphics-s-d.lib(truetype.obj) : warning LNK4049: locally defined symbol _memmove imported
15>sfml-graphics-s-d.lib(ftlzw.obj) : warning LNK4049: locally defined symbol _memmove imported
15>sfml-graphics-s-d.lib(ftbase.obj) : warning LNK4217: locally defined symbol _memmove imported in function _FT_GlyphLoader_CheckPoints
15>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4049: locally defined symbol _memmove imported
15>sfml-graphics-s-d.lib(pshinter.obj) : warning LNK4049: locally defined symbol _memmove imported
15>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _memmove imported
15>sfml-graphics-s-d.lib(bdf.obj) : warning LNK4217: locally defined symbol _sprintf imported in function __bdf_parse_properties
15>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4049: locally defined symbol _sprintf imported
15>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4217: locally defined symbol _memchr imported in function _tt_face_find_bdf_prop
15>sfml-graphics-s-d.lib(cff.obj) : warning LNK4049: locally defined symbol _strncmp imported
15>sfml-graphics-s-d.lib(type1.obj) : warning LNK4049: locally defined symbol _strncmp imported
15>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _tt_face_find_bdf_prop
15>sfml-graphics-s-d.lib(psaux.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _afm_parser_parse
15>sfml-graphics-s-d.lib(type42.obj) : warning LNK4049: locally defined symbol _strncmp imported
15>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _strncmp imported
15>sfml-graphics-s-d.lib(type42.obj) : warning LNK4217: locally defined symbol _atol imported in function _t42_get_name_index
15>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _atol imported
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _malloc imported in function _ft_alloc
15>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4049: locally defined symbol _malloc imported
15>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4217: locally defined symbol _malloc imported in function _jpeg_get_small
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _realloc imported in function _ft_realloc
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _free imported in function _ft_free
15>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4049: locally defined symbol _free imported
15>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _free imported
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fclose imported in function _ft_ansi_stream_close
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fread imported in function _ft_ansi_stream_io
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fseek imported in function _ft_ansi_stream_io
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _ftell imported in function _FT_Stream_Open
15>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fopen imported in function _FT_Stream_Open
15>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol _exit imported in function _error_exit
15>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol ___iob_func imported in function _output_message
15>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fwrite imported in function _empty_output_buffer
15>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _ferror imported in function _term_destination
15>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fflush imported in function _term_destination
15>sfml-graphics-s-d.lib(jmemmgr.obj) : warning LNK4217: locally defined symbol _getenv imported in function _jinit_memory_mgr
15>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__longjmp referenced in function _ft_validator_error
15>sfml-graphics-s-d.lib(smooth.obj) : error LNK2001: unresolved external symbol __imp__longjmp
15>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__strncpy referenced in function _raccess_make_file_name
15>sfml-graphics-s-d.lib(type1.obj) : error LNK2001: unresolved external symbol __imp__qsort
15>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__qsort referenced in function _FT_Raccess_Get_DataOffsets
15>sfml-graphics-s-d.lib(bdf.obj) : error LNK2001: unresolved external symbol __imp__qsort
15>sfml-graphics-s-d.lib(psmodule.obj) : error LNK2001: unresolved external symbol __imp__qsort
15>sfml-graphics-s-d.lib(psaux.obj) : error LNK2001: unresolved external symbol __imp__qsort
15>sfml-graphics-s-d.lib(truetype.obj) : error LNK2019: unresolved external symbol __imp__strstr referenced in function _tt_check_trickyness_family
15>sfml-graphics-s-d.lib(jerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _output_message
15>sfml-graphics-s-d.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _jinit_memory_mgr
15>C:\LaurentGomila-SFML-121cfeb\build\examples\pong\Debug\pong-d.exe : fatal error LNK1120: 6 unresolved externals
16>sfml-graphics-s-d.lib(ftbase.obj) : warning LNK4217: locally defined symbol _strrchr imported in function _raccess_make_file_name
16>sfml-graphics-s-d.lib(type1.obj) : warning LNK4049: locally defined symbol _memmove imported
16>sfml-graphics-s-d.lib(truetype.obj) : warning LNK4049: locally defined symbol _memmove imported
16>sfml-graphics-s-d.lib(ftlzw.obj) : warning LNK4049: locally defined symbol _memmove imported
16>sfml-graphics-s-d.lib(ftbase.obj) : warning LNK4217: locally defined symbol _memmove imported in function _FT_GlyphLoader_CheckPoints
16>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4049: locally defined symbol _memmove imported
16>sfml-graphics-s-d.lib(pshinter.obj) : warning LNK4049: locally defined symbol _memmove imported
16>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _memmove imported
16>sfml-graphics-s-d.lib(bdf.obj) : warning LNK4217: locally defined symbol _sprintf imported in function __bdf_parse_properties
16>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4049: locally defined symbol _sprintf imported
16>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4217: locally defined symbol _memchr imported in function _tt_face_find_bdf_prop
16>sfml-graphics-s-d.lib(cff.obj) : warning LNK4049: locally defined symbol _strncmp imported
16>sfml-graphics-s-d.lib(type1.obj) : warning LNK4049: locally defined symbol _strncmp imported
16>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _tt_face_find_bdf_prop
16>sfml-graphics-s-d.lib(psaux.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _afm_parser_parse
16>sfml-graphics-s-d.lib(type42.obj) : warning LNK4049: locally defined symbol _strncmp imported
16>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _strncmp imported
16>sfml-graphics-s-d.lib(type42.obj) : warning LNK4217: locally defined symbol _atol imported in function _t42_get_name_index
16>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _atol imported
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _malloc imported in function _ft_alloc
16>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4049: locally defined symbol _malloc imported
16>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4217: locally defined symbol _malloc imported in function _jpeg_get_small
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _realloc imported in function _ft_realloc
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _free imported in function _ft_free
16>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4049: locally defined symbol _free imported
16>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _free imported
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fclose imported in function _ft_ansi_stream_close
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fread imported in function _ft_ansi_stream_io
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fseek imported in function _ft_ansi_stream_io
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _ftell imported in function _FT_Stream_Open
16>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fopen imported in function _FT_Stream_Open
16>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol _exit imported in function _error_exit
16>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol ___iob_func imported in function _output_message
16>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fwrite imported in function _empty_output_buffer
16>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _ferror imported in function _term_destination
16>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fflush imported in function _term_destination
16>sfml-graphics-s-d.lib(jmemmgr.obj) : warning LNK4217: locally defined symbol _getenv imported in function _jinit_memory_mgr
16>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__longjmp referenced in function _ft_validator_error
16>sfml-graphics-s-d.lib(smooth.obj) : error LNK2001: unresolved external symbol __imp__longjmp
16>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__strncpy referenced in function _raccess_make_file_name
16>sfml-graphics-s-d.lib(type1.obj) : error LNK2001: unresolved external symbol __imp__qsort
16>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__qsort referenced in function _FT_Raccess_Get_DataOffsets
16>sfml-graphics-s-d.lib(bdf.obj) : error LNK2001: unresolved external symbol __imp__qsort
16>sfml-graphics-s-d.lib(psmodule.obj) : error LNK2001: unresolved external symbol __imp__qsort
16>sfml-graphics-s-d.lib(psaux.obj) : error LNK2001: unresolved external symbol __imp__qsort
16>sfml-graphics-s-d.lib(truetype.obj) : error LNK2019: unresolved external symbol __imp__strstr referenced in function _tt_check_trickyness_family
16>sfml-graphics-s-d.lib(jerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _output_message
16>sfml-graphics-s-d.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _jinit_memory_mgr
16>C:\LaurentGomila-SFML-121cfeb\build\examples\shader\Debug\shader-d.exe : fatal error LNK1120: 6 unresolved externals
17>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol _exit imported in function _error_exit
17>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol ___iob_func imported in function _output_message
17>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol _sprintf imported in function _format_message
17>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fwrite imported in function _empty_output_buffer
17>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _free imported in function _empty_mem_output_buffer
17>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _free imported
17>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _malloc imported in function _empty_mem_output_buffer
17>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _malloc imported
17>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _ferror imported in function _term_destination
17>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fflush imported in function _term_destination
17>sfml-graphics-s-d.lib(jmemmgr.obj) : warning LNK4217: locally defined symbol _getenv imported in function _jinit_memory_mgr
17>sfml-graphics-s-d.lib(jerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _output_message
17>sfml-graphics-s-d.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _jinit_memory_mgr
17>C:\LaurentGomila-SFML-121cfeb\build\examples\win32\Debug\win32-d.exe : fatal error LNK1120: 2 unresolved externals
14>sfml-graphics-s-d.lib(ftbase.obj) : warning LNK4217: locally defined symbol _strrchr imported in function _raccess_make_file_name
14>sfml-graphics-s-d.lib(type1.obj) : warning LNK4049: locally defined symbol _memmove imported
14>sfml-graphics-s-d.lib(truetype.obj) : warning LNK4049: locally defined symbol _memmove imported
14>sfml-graphics-s-d.lib(ftlzw.obj) : warning LNK4049: locally defined symbol _memmove imported
14>sfml-graphics-s-d.lib(ftbase.obj) : warning LNK4217: locally defined symbol _memmove imported in function _FT_GlyphLoader_CheckPoints
14>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4049: locally defined symbol _memmove imported
14>sfml-graphics-s-d.lib(pshinter.obj) : warning LNK4049: locally defined symbol _memmove imported
14>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _memmove imported
14>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol _exit imported in function _error_exit
14>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol ___iob_func imported in function _output_message
14>sfml-graphics-s-d.lib(jerror.obj) : warning LNK4217: locally defined symbol _sprintf imported in function _format_message
14>sfml-graphics-s-d.lib(bdf.obj) : warning LNK4049: locally defined symbol _sprintf imported
14>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fwrite imported in function _empty_output_buffer
14>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _free imported in function _empty_mem_output_buffer
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4049: locally defined symbol _free imported
14>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _free imported
14>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _malloc imported in function _empty_mem_output_buffer
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4049: locally defined symbol _malloc imported
14>sfml-graphics-s-d.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _malloc imported
14>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _ferror imported in function _term_destination
14>sfml-graphics-s-d.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fflush imported in function _term_destination
14>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4217: locally defined symbol _memchr imported in function _tt_face_find_bdf_prop
14>sfml-graphics-s-d.lib(cff.obj) : warning LNK4049: locally defined symbol _strncmp imported
14>sfml-graphics-s-d.lib(type1.obj) : warning LNK4049: locally defined symbol _strncmp imported
14>sfml-graphics-s-d.lib(sfnt.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _tt_face_find_bdf_prop
14>sfml-graphics-s-d.lib(psaux.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _afm_parser_parse
14>sfml-graphics-s-d.lib(type42.obj) : warning LNK4049: locally defined symbol _strncmp imported
14>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _strncmp imported
14>sfml-graphics-s-d.lib(type42.obj) : warning LNK4217: locally defined symbol _atol imported in function _t42_get_name_index
14>sfml-graphics-s-d.lib(type1cid.obj) : warning LNK4049: locally defined symbol _atol imported
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _realloc imported in function _ft_realloc
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fclose imported in function _ft_ansi_stream_close
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fread imported in function _ft_ansi_stream_io
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fseek imported in function _ft_ansi_stream_io
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _ftell imported in function _FT_Stream_Open
14>sfml-graphics-s-d.lib(ftsystem.obj) : warning LNK4217: locally defined symbol _fopen imported in function _FT_Stream_Open
14>sfml-graphics-s-d.lib(jmemmgr.obj) : warning LNK4217: locally defined symbol _getenv imported in function _jinit_memory_mgr
14>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__longjmp referenced in function _ft_validator_error
14>sfml-graphics-s-d.lib(smooth.obj) : error LNK2001: unresolved external symbol __imp__longjmp
14>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__strncpy referenced in function _raccess_make_file_name
14>sfml-graphics-s-d.lib(type1.obj) : error LNK2001: unresolved external symbol __imp__qsort
14>sfml-graphics-s-d.lib(ftbase.obj) : error LNK2019: unresolved external symbol __imp__qsort referenced in function _FT_Raccess_Get_DataOffsets
14>sfml-graphics-s-d.lib(bdf.obj) : error LNK2001: unresolved external symbol __imp__qsort
14>sfml-graphics-s-d.lib(psmodule.obj) : error LNK2001: unresolved external symbol __imp__qsort
14>sfml-graphics-s-d.lib(psaux.obj) : error LNK2001: unresolved external symbol __imp__qsort
14>sfml-graphics-s-d.lib(jerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _output_message
14>sfml-graphics-s-d.lib(truetype.obj) : error LNK2019: unresolved external symbol __imp__strstr referenced in function _tt_check_trickyness_family
14>sfml-graphics-s-d.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _jinit_memory_mgr

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: static sf::graphics library fails to link
« Reply #3 on: October 21, 2012, 06:29:40 pm »
Thanks, I'll try to investigate it as soon as I can.
Laurent Gomila - SFML developer