Hi Andreas,

at www.sapdb.org at Documentation/Installation Guides you'll find the
"Installation Guide for C/C++ Precompiler", describing the linking of a
precompiled program by the use of cpclnk, which simplifies your linkage
described below.

Regards,

Thomas Simenec
SAP DB
SAP Labs Berlin

-----Original Message-----
From: Andreas Bohn [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 21. Januar 2003 15:15
To: [EMAIL PROTECTED]
Subject: LIB's for linking with MSVC 6 mostly undcoumented


hello sap folks,


Are there any news about this ??
Any Information available ?
Will this be adressed ?
Am i right with my assumptions / findings below ?


LIB's for linking with MSVC 6 mostly undcoumented
=================================================

The linker options / librarys to use with MSVC 6 are mostly undocumented.
Swimming to my unresolved externals and doing some symbol search my
findings are as follows:

I found the batch file sqllist.bat in directory ..\depend\bin. 
there it says:

// .. some stuff

: DYNAMIC
if     "%OCI%" == "" echo %DBROOT%\LIB\libsqlcad.lib
if not "%OCI%" == "" echo %DBROOT%\LIB\oci.lib
echo %DBROOT%\LIB\libpcrl.lib
echo msvcrt.lib
echo -nodefaultlib:libcmt
goto STANDARD

// .. some stuff

So i linked with libpcrl.lib and libsqlcad.lib (dynamic with msvcrt, 
libcmt.lib set as nodefault, MultiThreaded DLL Build as usual...). 
However, if one tries to link this way, he will get unresolved externals
anyway.

I am using C-PreComp 7.3.0    Build 029-000-087-681  (shown by cpc -V)

(btw: if this very PreCom creates an error report file it will say:
SAP AG SAP DB C-PreComp Version   7.3.0    Build 029-000-087-746 PROGNAME:
SAPDBTest wich differs in the last three digits, .. oops.)

Kernel:          7.3.0  Build 029-000-087-809
RTE:    NT/INTEL 7.3.0  Build 029-000-087-809

After symbol searching through the delivered lib's i'am using the
following librarys with the following link options:

libpcrl.lib sqlcamt.lib <..stuff..> /nodefaultlib:"libcmt.lib"
/libpath:"C:\Programme\sapdb\depend73\lib" 

Note that i'am using SQLCAMT.LIB, not the lib mentioned in the batch
above.

No unresolved externals this way and everthing works just fine. 
I've read to the available documentation and found no other source of
information to achieve painless linking.

Is there a part of documentation anywhere which descibe the development
with MSVC 6 (Enterprise Edition with SP5) and offers a better/official
solution to this ?

If i miss something please gimme a shout and/or update documentation.

thanks in advance



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to