msvc BZ2_bzCompressInit detecting problem
Ralf Habacker
ralf.habacker at freenet.de
Sat Apr 7 16:02:11 CEST 2007
Hi,
the last bzip2 releases have problems to detect BZ2_bzCompressInit.
I've added a testcase which runs well using mingw, but fails with msvc
with the following error (The full compile log is added below)
CheckFunctionExists.obj : error LNK2019: Verweis auf nicht aufgel”stes
externes Symbol "_BZ2_bzCompressInit" in Funktion "_main".
While I tracked this problem down and fixed for mingw, I cannot see any
error why msvc fails in this area.
Is anyone there who can solve this problem ?
Ralf
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CMakeFiles/CMakeError.log
<snip>
Determining if the function BZ2_bzCompressInit exists in the
C:/Programme/kdewin-msvc/lib/bzip2.lib failed with the following output:
Microsoft (R) Visual C++ Express Edition, Version 8.0.50727.42.
Copyright (C) Microsoft Corp 1984-2005. Alle Rechte vorbehalten.
------ Erstellen gestartet: Projekt: cmTryCompileExec, Konfiguration:
Debug Win32 ------
Kompilieren...
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 14.00.50727.42
fr 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cl /Od /D "_MBCS" /FD /EHsc /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC /DWIN32 /D_WINDOWS
/Zm1000 -DCHECK_FUNCTION_EXISTS=BZ2_bzCompressInit /D_DEBUG
-DCMAKE_INTDIR=\"Debug\"
"..\..\..\..\cmake-2.4.6-win32-x86\share\cmake-2.4\Modules\CheckFunctionExists.c"
CheckFunctionExists.c
Manifest in Ressourcen wird kompiliert...
Verknpfen...
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
"/OUT:Debug\cmTryCompileExec.exe" /VERSION:0.0 /INCREMENTAL
"/LIBPATH:c:\Programme\kdewin-msvc\lib\Debug"
"/LIBPATH:c:\Programme\kdewin-msvc\lib" /MANIFEST
"/MANIFESTFILE:cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest"
/DEBUG "/PDB:Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE
/STACK:10000000 /machine:I386 /debug kernel32.lib user32.lib gdi32.lib
winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib
advapi32.lib bzip2.lib kdewin32d.lib user32.lib shell32.lib ws2_32.lib
".\cmTryCompileExec.dir\Debug\CheckFunctionExists.obj"
".\cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res"
CheckFunctionExists.obj : error LNK2019: Verweis auf nicht aufgel”stes
externes Symbol "_BZ2_bzCompressInit" in Funktion "_main".
Debug\cmTryCompileExec.exe : fatal error LNK1120: 1 nicht aufgel”ste
externe Verweise.
Das Buildprotokoll wurde unter
"file://f:\daten\cmake-test\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
gespeichert.
cmTryCompileExec - 2 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 1 aktuell, 0
bersprungen ==========
Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-bzip2-testcase.zip
Type: application/x-zip-compressed
Size: 1768 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20070407/fd2786bf/attachment.bin
More information about the Kde-windows
mailing list