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

Author Topic: Compilation error  (Read 2943 times)

0 Members and 1 Guest are viewing this topic.

toolate

  • Newbie
  • *
  • Posts: 2
    • View Profile
Compilation error
« on: October 07, 2012, 07:59:35 am »
Hello.
I use VS2010 SP1 and have a problem with recent change.

Since LaurentGomila-SFML-2.0-rc-94-g26fa99f.zip

BUILD_SHARED_LIBS=TRUE, SFML_USE_STATIC_STD_LIBS=FALSE (/MD)
BUILD_SHARED_LIBS=FALSE, SFML_USE_STATIC_STD_LIBS=FALSE (/MD)
These compiled OK.

BUILD_SHARED_LIBS=FALSE, SFML_USE_STATIC_STD_LIBS=TRUE (SFML_STATIC, /MT)
This generate below error.

Quote
1>sfml-graphics-s.lib(ftbase.obj) : error LNK2001: unresolved external symbol __imp__longjmp
1>sfml-graphics-s.lib(smooth.obj) : error LNK2001: unresolved external symbol __imp__longjmp
1>sfml-graphics-s.lib(ftbase.obj) : error LNK2001: unresolved external symbol __imp__strncpy
1>sfml-graphics-s.lib(type1.obj) : error LNK2001: unresolved external symbol __imp__qsort
1>sfml-graphics-s.lib(ftbase.obj) : error LNK2001: unresolved external symbol __imp__qsort
1>sfml-graphics-s.lib(bdf.obj) : error LNK2001: unresolved external symbol __imp__qsort
1>sfml-graphics-s.lib(psmodule.obj) : error LNK2001: unresolved external symbol __imp__qsort
1>sfml-graphics-s.lib(psaux.obj) : error LNK2001: unresolved external symbol __imp__qsort
1>sfml-graphics-s.lib(truetype.obj) : error LNK2001: unresolved external symbol __imp__strstr
1>sfml-graphics-s.lib(jerror.obj) : error LNK2001: unresolved external symbol __imp__fprintf
1>sfml-graphics-s.lib(jmemmgr.obj) : error LNK2001: unresolved external symbol __imp__sscanf
1>sfml-graphics-s.lib(jmemmgr.obj) : error LNK2001: unresolved external symbol __imp__getenv

until LaurentGomila-SFML-2.0-rc-93-g7656693.zip all are OK

I think it's related to precompiled freetype.lib, glew.lib and jpeg.lib.
How can I resolve this situation? A newbie in distress. Help! ::)

toolate

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Compilation error
« Reply #1 on: October 08, 2012, 02:12:18 pm »
Alright. I've found a work around.

It was those 3 files causing me a trouble. Not all 3 maybe. When I reverted back to previous ones it compiled OK again.
Anyone know why lack of /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" is giving me a headache?

Oh, well, I'm still learning. ::)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compilation error
« Reply #2 on: October 08, 2012, 03:02:44 pm »
Don't waste too much time on this issue, it was most likely caused by my changes after commit g7656693.
Laurent Gomila - SFML developer