Page 1 of 1

Error with vc++ 2005 express

Posted: Wed Jun 14, 2006 1:12 am
by koex
Hello :)

I'm trying to compile Blender using Microsoft Visual C++ 2005 express (a free version that provides microsoft in her webpage). But an error occurs when the compiler do the "Linking program ==> 'blender.exe'". The exact error is :

Code: Select all

Linking program ==> 'blender.exe'
Using tempfile d:\docume~1\koex\config~1\temp\tmpq7ampf.lnk for command line:
link /nologo /SUBSYSTEM:CONSOLE /MACHINE:IX86 /ENTRY:mainCRTStartup /INCREMENTAL
:NO /NODEFAULTLIB:"msvcprt.lib" /NODEFAULTLIB:"glut32.lib" /NODEFAULTLIB:"libc.l
ib" /NODEFAULTLIB:"libcd.lib" /NODEFAULTLIB:"libcpd.lib" /NODEFAULTLIB:"libcp.li
b" /NODEFAULTLIB:"libcmtd.lib" /OUT:C:\build\bin\blender.exe /LIBPATH:C:\build\l
ib /LIBPATH:\usr\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\pyt
hon\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\sdl\lib /LIBPATH
:C:\Recopilacion\Blender\bf-blender\lib\windows\jpeg\lib /LIBPATH:C:\Recopilacio
n\Blender\bf-blender\lib\windows\png\lib /LIBPATH:C:\Recopilacion\Blender\bf-ble
nder\lib\windows\zlib\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\window
s\iconv\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\openexr\lib
/LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\gettext\lib /LIBPATH:C:\
Recopilacion\Blender\bf-blender\lib\windows\freetype\lib /LIBPATH:C:\Recopilacio
n\Blender\bf-blender\lib\windows\openal\lib /LIBPATH:C:\Recopilacion\Blender\bf-
blender\lib\windows\pthreads\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib
\windows\QTDevWin\Libraries python24.lib libjpeg.lib libpng_st.lib libz.lib free
type2ST.lib gnu_gettext.lib openal_static.lib Iex.lib Half.lib IlmImf.lib Imath.
lib SDL.lib opengl32.lib glu32.lib pthreadVC2.lib ws2_32.lib dxguid.lib vfw32.li
b winmm.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.
lib ole32.lib oleaut32.lib uuid.lib qtmlClient.lib C:\build\source\creator\dynam
ic_buildinfo.obj C:\build\lib\winresource.res C:\build\lib\blender_creator.lib C
:\build\lib\src.lib C:\build\lib\bf_decimation.lib C:\build\lib\blender_BSP.lib
C:\build\lib\bf_soundsystem.lib C:\build\lib\bf_ghost.lib C:\build\lib\bf_string
.lib C:\build\lib\blender_img.lib C:\build\lib\blender_render.lib C:\build\lib\b
lender_radiosity.lib C:\build\lib\blender_ONL.lib C:\build\lib\blender_python.li
b C:\build\lib\bf_blenkernel.lib C:\build\lib\bf_blenloader.lib C:\build\lib\bf_
blenpluginapi.lib C:\build\lib\bf_imbuf.lib C:\build\lib\bf_blenlib.lib C:\build
\lib\bf_avi.lib C:\build\lib\bf_cineon.lib C:\build\lib\bf_openexr.lib C:\build\
lib\bf_quicktime.lib C:\build\lib\bf_readblenfile.lib C:\build\lib\blender_bop.l
ib C:\build\lib\bf_dna.lib C:\build\lib\bf_kernel.lib C:\build\lib\bf_decimation
.lib C:\build\lib\bf_elbeem.lib C:\build\lib\bf_yafray.lib C:\build\lib\blender_
IK.lib C:\build\lib\bf_memutil.lib C:\build\lib\bf_guardedalloc.lib C:\build\lib
\blender_CTR.lib C:\build\lib\bf_moto.lib C:\build\lib\bf_bmfont.lib C:\build\li
b\src.lib C:\build\lib\bf_ftfont.lib C:\build\lib\extern_ftgl.lib C:\build\lib\b
f_bloutines.lib C:\build\lib\bf_converter.lib C:\build\lib\bf_dummy.lib C:\build
\lib\bf_bullet.lib C:\build\lib\bf_common.lib C:\build\lib\bf_ketsji.lib C:\buil
d\lib\bf_logic.lib C:\build\lib\bf_rasterizer.lib C:\build\lib\bf_oglrasterizer.
lib C:\build\lib\bf_expressions.lib C:\build\lib\bf_scenegraph.lib C:\build\lib\
bf_moto.lib C:\build\lib\bf_bloutines.lib C:\build\lib\kx_network.lib C:\build\l
ib\bf_kernel.lib C:\build\lib\bf_ngnetwork.lib C:\build\lib\extern_bullet.lib C:
\build\lib\bf_loopbacknetwork.lib C:\build\lib\bf_sumo.lib C:\build\lib\bf_commo
n.lib C:\build\lib\extern_solid.lib C:\build\lib\extern_qhull.lib C:\build\lib\b
f_moto.lib C:\build\lib\blender_python.lib
LINK : fatal error LNK1181: cannot open input file 'dxguid.lib'
scons: *** [C:\build\bin\blender.exe] Error 1181
scons: building terminated because of errors.
What can be the problem? I searched for this file in the Visual C++ directory without luck.

Thanks in advance.

Posted: Wed Jun 14, 2006 1:41 am
by koex
Hmmm... i think that this lib is missing in this free package. Anyone know in which SDK can i find this lib?

Thanks in advance.

Posted: Wed Jun 14, 2006 9:37 am
by jesterKing
Direct X SDK is what you're looking for.

/Nathan

ps. Are you sure it is the free version that provides microsoft, and not the other way around? ;)

Posted: Wed Jun 14, 2006 1:05 pm
by koex
Thanks for the reply :)

I'm using this http://msdn.microsoft.com/vstudio/express/visualc/

Yes, the directx sdk contains the dxguid.lib.

But now i have another problem, and i can't understand it :(

Code: Select all

Linking program ==> 'blender.exe'
Using tempfile d:\docume~1\koex\config~1\temp\tmpof4hso.lnk for command line:
link /nologo /SUBSYSTEM:CONSOLE /MACHINE:IX86 /ENTRY:mainCRTStartup /INCREMENTAL
:NO /NODEFAULTLIB:"msvcprt.lib" /NODEFAULTLIB:"glut32.lib" /NODEFAULTLIB:"libc.l
ib" /NODEFAULTLIB:"libcd.lib" /NODEFAULTLIB:"libcpd.lib" /NODEFAULTLIB:"libcp.li
b" /NODEFAULTLIB:"libcmtd.lib" /OUT:C:\build\bin\blender.exe /LIBPATH:C:\build\l
ib /LIBPATH:\usr\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\pyt
hon\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\sdl\lib /LIBPATH
:C:\Recopilacion\Blender\bf-blender\lib\windows\jpeg\lib /LIBPATH:C:\Recopilacio
n\Blender\bf-blender\lib\windows\png\lib /LIBPATH:C:\Recopilacion\Blender\bf-ble
nder\lib\windows\zlib\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\window
s\iconv\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\openexr\lib
/LIBPATH:C:\Recopilacion\Blender\bf-blender\lib\windows\gettext\lib /LIBPATH:C:\
Recopilacion\Blender\bf-blender\lib\windows\freetype\lib /LIBPATH:C:\Recopilacio
n\Blender\bf-blender\lib\windows\openal\lib /LIBPATH:C:\Recopilacion\Blender\bf-
blender\lib\windows\pthreads\lib /LIBPATH:C:\Recopilacion\Blender\bf-blender\lib
\windows\QTDevWin\Libraries python24.lib libjpeg.lib libpng_st.lib libz.lib free
type2ST.lib gnu_gettext.lib openal_static.lib Iex.lib Half.lib IlmImf.lib Imath.
lib SDL.lib opengl32.lib glu32.lib pthreadVC2.lib ws2_32.lib dxguid.lib vfw32.li
b winmm.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.
lib ole32.lib oleaut32.lib uuid.lib qtmlClient.lib C:\build\source\creator\dynam
ic_buildinfo.obj C:\build\lib\winresource.res C:\build\lib\blender_creator.lib C
:\build\lib\src.lib C:\build\lib\bf_decimation.lib C:\build\lib\blender_BSP.lib
C:\build\lib\bf_soundsystem.lib C:\build\lib\bf_ghost.lib C:\build\lib\bf_string
.lib C:\build\lib\blender_img.lib C:\build\lib\blender_render.lib C:\build\lib\b
lender_radiosity.lib C:\build\lib\blender_ONL.lib C:\build\lib\blender_python.li
b C:\build\lib\bf_blenkernel.lib C:\build\lib\bf_blenloader.lib C:\build\lib\bf_
blenpluginapi.lib C:\build\lib\bf_imbuf.lib C:\build\lib\bf_blenlib.lib C:\build
\lib\bf_avi.lib C:\build\lib\bf_cineon.lib C:\build\lib\bf_openexr.lib C:\build\
lib\bf_quicktime.lib C:\build\lib\bf_readblenfile.lib C:\build\lib\blender_bop.l
ib C:\build\lib\bf_dna.lib C:\build\lib\bf_kernel.lib C:\build\lib\bf_decimation
.lib C:\build\lib\bf_elbeem.lib C:\build\lib\bf_yafray.lib C:\build\lib\blender_
IK.lib C:\build\lib\bf_memutil.lib C:\build\lib\bf_guardedalloc.lib C:\build\lib
\blender_CTR.lib C:\build\lib\bf_moto.lib C:\build\lib\bf_bmfont.lib C:\build\li
b\src.lib C:\build\lib\bf_ftfont.lib C:\build\lib\extern_ftgl.lib C:\build\lib\b
f_bloutines.lib C:\build\lib\bf_converter.lib C:\build\lib\bf_dummy.lib C:\build
\lib\bf_bullet.lib C:\build\lib\bf_common.lib C:\build\lib\bf_ketsji.lib C:\buil
d\lib\bf_logic.lib C:\build\lib\bf_rasterizer.lib C:\build\lib\bf_oglrasterizer.
lib C:\build\lib\bf_expressions.lib C:\build\lib\bf_scenegraph.lib C:\build\lib\
bf_moto.lib C:\build\lib\bf_bloutines.lib C:\build\lib\kx_network.lib C:\build\l
ib\bf_kernel.lib C:\build\lib\bf_ngnetwork.lib C:\build\lib\extern_bullet.lib C:
\build\lib\bf_loopbacknetwork.lib C:\build\lib\bf_sumo.lib C:\build\lib\bf_commo
n.lib C:\build\lib\extern_solid.lib C:\build\lib\extern_qhull.lib C:\build\lib\b
f_moto.lib C:\build\lib\blender_python.lib
   Creating library C:\build\bin\blender.lib and object C:\build\bin\blender.exp

libjpeg.lib(jerror.o) : warning LNK4217: locally defined symbol __iob imported i
n function _output_message
libpng_st.lib(pngerror.o) : warning LNK4049: locally defined symbol __iob import
ed
libpng_st.lib(pngwutil.o) : warning LNK4049: locally defined symbol __iob import
ed
libpng_st.lib(pngrutil.o) : warning LNK4049: locally defined symbol __iob import
ed
IlmImf.lib(ImfHuf.obj) : error LNK2001: unresolved external symbol "public: void
 __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEX
XZ)
Iex.lib(IexThrowErrnoExc.obj) : error LNK2001: unresolved external symbol "publi
c: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@st
d@@QBEXXZ)
IlmImf.lib(ImfTiledMisc.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std
@@QBEXXZ)
IlmImf.lib(ImfPxr24Compressor.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfZipCompressor.obj) : error LNK2001: unresolved external symbol "pu
blic: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base
@std@@QBEXXZ)
IlmImf.lib(ImfRleCompressor.obj) : error LNK2001: unresolved external symbol "pu
blic: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base
@std@@QBEXXZ)
IlmImf.lib(ImfScanLineInputFile.obj) : error LNK2001: unresolved external symbol
 "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_
base@std@@QBEXXZ)
IlmImf.lib(ImfTiledInputFile.obj) : error LNK2001: unresolved external symbol "p
ublic: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_bas
e@std@@QBEXXZ)
IlmImf.lib(ImfMisc.obj) : error LNK2019: unresolved external symbol "public: voi
d __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBE
XXZ) referenced in function "int __cdecl Imf::pixelTypeSize(enum Imf::PixelType)
" (?pixelTypeSize@Imf@@YAHW4PixelType@1@@Z)
IlmImf.lib(ImfTileOffsets.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@s
td@@QBEXXZ)
IlmImf.lib(ImfTimeCode.obj) : error LNK2001: unresolved external symbol "public:
 void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@
@QBEXXZ)
IlmImf.lib(ImfChromaticities.obj) : error LNK2001: unresolved external symbol "p
ublic: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_bas
e@std@@QBEXXZ)
IlmImf.lib(ImfStdIO.obj) : error LNK2001: unresolved external symbol "public: vo
id __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QB
EXXZ)
IlmImf.lib(ImfOpaqueAttribute.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfOutputFile.obj) : error LNK2001: unresolved external symbol "publi
c: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@st
d@@QBEXXZ)
IlmImf.lib(ImfTiledOutputFile.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfFrameBuffer.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@s
td@@QBEXXZ)
IlmImf.lib(ImfKeyCode.obj) : error LNK2001: unresolved external symbol "public:
void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@
QBEXXZ)
IlmImf.lib(ImfAttribute.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std
@@QBEXXZ)
IlmImf.lib(ImfStringAttribute.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfChannelList.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@s
td@@QBEXXZ)
IlmImf.lib(ImfInputFile.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std
@@QBEXXZ)
Iex.lib(IexBaseExc.obj) : error LNK2001: unresolved external symbol "public: voi
d __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBE
XXZ)
Half.lib(half.obj) : error LNK2001: unresolved external symbol "public: void __t
hiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
IlmImf.lib(ImfIO.obj) : error LNK2001: unresolved external symbol "public: void
__thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXX
Z)
IlmImf.lib(ImfHeader.obj) : error LNK2001: unresolved external symbol "public: v
oid __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@Q
BEXXZ)
IlmImf.lib(ImfHuf.obj) : error LNK2001: unresolved external symbol "public: void
 __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEX
XZ)
Iex.lib(IexThrowErrnoExc.obj) : error LNK2001: unresolved external symbol "publi
c: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@st
d@@QBEXXZ)
IlmImf.lib(ImfTiledMisc.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std
@@QBEXXZ)
IlmImf.lib(ImfPxr24Compressor.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfZipCompressor.obj) : error LNK2001: unresolved external symbol "pu
blic: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base
@std@@QBEXXZ)
IlmImf.lib(ImfRleCompressor.obj) : error LNK2001: unresolved external symbol "pu
blic: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base
@std@@QBEXXZ)
IlmImf.lib(ImfScanLineInputFile.obj) : error LNK2001: unresolved external symbol
 "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_
base@std@@QBEXXZ)
IlmImf.lib(ImfTiledInputFile.obj) : error LNK2001: unresolved external symbol "p
ublic: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_bas
e@std@@QBEXXZ)
IlmImf.lib(ImfMisc.obj) : error LNK2001: unresolved external symbol "public: voi
d __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBE
XXZ)
IlmImf.lib(ImfTileOffsets.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@s
td@@QBEXXZ)
IlmImf.lib(ImfTimeCode.obj) : error LNK2001: unresolved external symbol "public:
 void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@
@QBEXXZ)
IlmImf.lib(ImfChromaticities.obj) : error LNK2001: unresolved external symbol "p
ublic: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_bas
e@std@@QBEXXZ)
IlmImf.lib(ImfStdIO.obj) : error LNK2001: unresolved external symbol "public: vo
id __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QB
EXXZ)
IlmImf.lib(ImfOpaqueAttribute.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfOutputFile.obj) : error LNK2001: unresolved external symbol "publi
c: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@st
d@@QBEXXZ)
IlmImf.lib(ImfTiledOutputFile.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfFrameBuffer.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@s
td@@QBEXXZ)
IlmImf.lib(ImfKeyCode.obj) : error LNK2001: unresolved external symbol "public:
void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@
QBEXXZ)
IlmImf.lib(ImfAttribute.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std
@@QBEXXZ)
IlmImf.lib(ImfStringAttribute.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_ba
se@std@@QBEXXZ)
IlmImf.lib(ImfChannelList.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@s
td@@QBEXXZ)
IlmImf.lib(ImfInputFile.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std
@@QBEXXZ)
Iex.lib(IexBaseExc.obj) : error LNK2019: unresolved external symbol "public: voi
d __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBE
XXZ) referenced in function "protected: bool __thiscall std::basic_string<char,s
truct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bo
ol)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI
_N@Z)
Half.lib(half.obj) : error LNK2001: unresolved external symbol "public: void __t
hiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
IlmImf.lib(ImfIO.obj) : error LNK2001: unresolved external symbol "public: void
__thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXX
Z)
IlmImf.lib(ImfHeader.obj) : error LNK2001: unresolved external symbol "public: v
oid __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@Q
BEXXZ)
IlmImf.lib(ImfOpaqueAttribute.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QA
EXXZ)
IlmImf.lib(ImfScanLineInputFile.obj) : error LNK2001: unresolved external symbol
 "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@
QAEXXZ)
IlmImf.lib(ImfTiledInputFile.obj) : error LNK2001: unresolved external symbol "p
ublic: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAE
XXZ)
IlmImf.lib(ImfOutputFile.obj) : error LNK2001: unresolved external symbol "publi
c: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)

IlmImf.lib(ImfTiledOutputFile.obj) : error LNK2001: unresolved external symbol "
public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QA
EXXZ)
IlmImf.lib(ImfFrameBuffer.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ
)
IlmImf.lib(ImfStdIO.obj) : error LNK2001: unresolved external symbol "public: vo
id __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)
IlmImf.lib(ImfHeader.obj) : error LNK2019: unresolved external symbol "public: v
oid __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ) ref
erenced in function "protected: void __thiscall std::basic_ios<char,struct std::
char_traits<char> >::init(class std::basic_streambuf<char,struct std::char_trait
s<char> > *,bool)" (?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basi
c_streambuf@DU?$char_traits@D@std@@@2@_N@Z)
IlmImf.lib(ImfAttribute.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)
IlmImf.lib(ImfChannelList.obj) : error LNK2001: unresolved external symbol "publ
ic: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ
)
IlmImf.lib(ImfInputFile.obj) : error LNK2001: unresolved external symbol "public
: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)
C:\build\bin\blender.exe : fatal error LNK1120: 3 unresolved externals
scons: *** [C:\build\bin\blender.exe] Error 1120
scons: building terminated because of errors.
What can be the problem?

Thanks in advance.

Posted: Wed Jun 14, 2006 4:05 pm
by SirDude
You need to look at the first error:
IlmImf.lib(ImfHuf.obj) : error LNK2001: unresolved external symbol "public: void

This means your missing IlmImf.lib which is part of OpenEXR.
You need to get OpenEXR and make sure your build system is configured to find it correctly.

Posted: Wed Jun 14, 2006 6:40 pm
by koex
Yes SirDude!

OpenEXR is the problem. I set WITH_BF_OPENEXR to 'false' in user-config.py and all works fine (wow! my first msvc++ 2005 express succesful compilation). The question is, if i had the lib/windows up-to-date, for what this error occurs?

Thanks.

Posted: Thu Jun 15, 2006 6:37 pm
by koex
Ok. I've found a solution :)

If i set BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib' to BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_msvc' all works fine with openexr enabled.

Take care that i'm using the free version of msvc (http://msdn.microsoft.com/vstudio/express/visualc/) not the professional.

Where can i report this problem?

Thanks in advance.

Posted: Thu Jun 15, 2006 8:07 pm
by stiv
Is this a 'problem' or is it just the normal setting the correct values for your environment?

Posted: Thu Jun 15, 2006 9:15 pm
by koex
I think it's a problem, in a fresh CVS if you see the "win32-vc-config.py" appears BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib', and to work i need to make a "user-config.py" with BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_msvc.

The questions are, no one have this same problem? no one compile under the free version of msvc? this error doesn't occurs with pay version of visual studio?

Thanks in advance.

Posted: Mon Jun 26, 2006 5:51 am
by tmotka
I have succeeded compiling blender with VC2005 Express Edition.
Download daily checkouts from http://download.blender.org/projects/bf ... -checkouts.
Daily checkouts includes all of libraries to compile blender.
QT6SDK_Win.zip is also needed. Read \bf_blender\blender\INSTALL.

(Each project's property pages can be opened from the Solution Explorer.[Press Alt+Ctrl+L])

Open \bf_blender\blender\extern\make\msvc_7_0\extern.sln.
Select [Blender Release] in combo box on toolbar.
Open the Bullet3Dynamics project's property pages.
Click the Build Events folder.
At Command line property, add a following line before 'ECHO Done'.
XCOPY /Y ..\..\..\BulletDynamics\Dynamics\*.h ..\..\..\..\..\..\build\msvc_7\extern\bullet\include\Dynamics
Then build solution.

Open \bf_blender\blender\intern\make\msvc_7_0\intern.sln.
Select [Blender Release].
Build solution.

Open \bf_blender\blender\projectfiles_vc7\blender\blender.sln.
Select [Blender Release].
Open the FTF_ftfont project's property pages.
Click the C/C++ folder.
Click the Language property page.
Change [Treat wchar_t as Built-in Type] property to [No].

Open the blender project's property pages.
Click the Linker folder.
Click the Input property page.
Add memutil.lib to Additional dependecy files property.
Build solution.


\bf_blender\blender\bin\blender.exe will be made :wink: .

Posted: Thu Jul 13, 2006 11:27 pm
by mpan3
hey tmotka, i decided to follow your guide to compile blender using free VC tools, but i am stuck as VC++ gives me "fatal error: windows.h not found errors", can you explain in a bit more detail how to setup the entire compiler environment?

is the platform sdk really neccessary? I ran the installer and only installed 'Win32 Core' and nothing else.

Posted: Sat Jul 15, 2006 4:41 am
by mchs3d
koex wrote:I think it's a problem, in a fresh CVS if you see the "win32-vc-config.py" appears BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib', and to work i need to make a "user-config.py" with BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_msvc.

The questions are, no one have this same problem? no one compile under the free version of msvc? this error doesn't occurs with pay version of visual studio?

Thanks in advance.
Actually, it's not a problem. The issue is that MSVC throws a fit with the first libs becuase they are MultiThreaded DLL. The lib_msvc version is Static MultiThreaded. I had them upload that one because MSVC will never link with the others, at least for the current configuration.

Posted: Tue Jul 25, 2006 3:28 am
by malCanDo
Hi Mpan3,

The Platform SDK is required, as the VC++ Express doesn't ship with files such as windows.h.

You can read the documentation about it here, as well as how to configure VC++ Express...

http://msdn.microsoft.com/vstudio/expre ... fault.aspx

The SDK is huge though, I'd like to hear if anyone has found a way of downloading and installing a minimal set of files required for compiling Blender.

Mal

Posted: Sat Sep 16, 2006 10:54 pm
by etr9j
I had the same issue with the windows.h. I resolved it after finding this at http://forums.microsoft.com/MSDN/ShowPo ... 4&SiteID=1 .

The easiest procedure to use the PSDK with VC2005 Express is:

1. Create a directory "PlatformSDK" under "%ProgramFiles%\Microsoft Visual Studio 8\VC"
2. Copy the "bin", "include" and "lib" directory from the PSDK-installation into this directory.

Posted: Mon Oct 02, 2006 2:56 am
by etr9j
I got it to work, and I already posted about this on BlenderNation, but for those finding their way here I thought I would point them to the two places I put the instructions:

http://www.geneome.net/index.php/blende ... -with-msvc

http://mediawiki.blender.org/index.php/ ... l_Studio_8