Link Problems in DEBUG Builds with MSVC 6 SP5 and SP6 with CPC code
===================================================================
hello list,
writing CPC based code so far i have some problems regararding
linking for DEBUG builds (release builds go fine). the following
error is thrown by the MSVC6 linker:
libsqlca.lib(vpi30cac.o) : fatal error LNK1103:
debugging information corrupt; recompile module
my config is:
OS : Win 2000 Prof. SP 4
Kernel: 7.5.0 Build 014-123-073-298
CPC : @(#)C-PreComp 7.5.0 Build 014-123-073-156
//cpc-version-string copied from generated source !!
everything clean installed from:
maxdb-all-win-32bit-i386-7_5_00_14.zip from 2004-June-03 17:50
(thats the download date, so i got the latest files of this distro i
think)
the CPC-line for a DB Module is:
cpc -E cansi -BIT32 -7500 -H nocheck -s -o -c TheUserHandler
the CPP-line for a DB Module is:
/nologo /MDd /W3 /GR /GX /Z7 /Od
/I "..\..\..\..\_extern\stl\stlport"
/I "..\..\..\..\_extern\Patch\vc\include"
/I "C:\Programme\sdb\programs\sdk\7500\incl"
/I "..\..\pch" /D "WIN32" /D "_DEBUG" /D "_WINDOWS"
/D "_AFXDLL" /D "_MBCS" /D "NO_STRICT"
/Fp".\..\..\..\..\_obj\debug_generic/pch.pch"
/Fo".\..\..\..\..\_obj\debug_generic/"
/Fd".\..\..\..\..\_obj\debug_generic/" /FD /GZ /c
the LINK-line for the Application is:
stdafx.obj libpcr.lib libsqlca.lib
<..and quit more other stuff, also including obj's and lib's wich are
pulled in automaticly due to dependency resolution of MSVC IDE..>
/subsystem:windows
/incremental:yes
/debug /machine:I386
/nodefaultlib:"libcmt.lib"
/nodefaultlib:"libc.lib"
/pdbtype:sept
/libpath:"C:\Programme\sdb\programs\sdk\7500\lib"
/libpath:"C:\Programme\sdb\programs\runtime\7500\pgm"
i also found in
C:\Programme\sdb\programs\sdk\7500\bin\sqllist.bat
the lines
: DYNAMIC
echo %SAPDBSDKLIB%\libsqlcad.lib
echo %SAPDBSDKLIB%\libpcrl.lib
echo msvcrt.lib
echo -nodefaultlib:libcmt
goto STANDARD
but THERE IS NO libsqlcad.lib, only libsqlca.lib is existing.
also using libpcrl.lib as mentioned in the batch file causes
unresolved externals from vsp77.o, so i use libpcr.lib from
\sdb\programs\runtime\7500\pgm instead.
RELEASE BUILDS ARE GOING FINE, no problem.
using the cpclnk is NOT an option while working in the IDE and
having to link a whole bunch of other stuff.
writing a separate makefile just to come over this (and keep up changes
manually in the makefile that the IDE would handle automaticly otherwise)
just to link debug's with cpclnk is really not an option.
it also seems that this is an erratic error from version to version,
i.e. i can link release AND DEBUG builds without pain on a system
with version 7.5.0.5 (from maxdb-all-win-32bit-i386-7_5_0_5).
surprisingly in 7.5.0.5 there is also no libsqlcad.lib, but linking
debug's with the link line above just works fine.
it would be wonderfull if this debugging lib issue could be checked
a bit more thorough in future releases of your fine db to avoid
debug link hassles.
also please let me know if there is another way around this
thanks in advance
andreas bohn
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]