2
0

win32_builds.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <HTML>
  2. <HEAD><TITLE>APR Win32 Builds and Debugging</TITLE></HEAD>
  3. <BODY>
  4. <h1>APR Win32 Builds and Debugging</h1>
  5. <h2>Configuration and Flavors</h2>
  6. <p>The Win32 APR Developer Studio projects consist of</p>
  7. <dl>
  8. <dt>apr/apr.dsp</dt>
  9. <dd>Builds the static apr.lib library (-D APR_DECLARE_STATIC)</dd>
  10. <dt>apr/libapr.dsp</dt>
  11. <dd>Builds the dynamic libapr.dll library (no define required)</dd>
  12. <dt>apr-util/aprutil.dsp</dt>
  13. <dd>Builds the static aprutil.lib library (-D APU_DECLARE_STATIC)</dd>
  14. <dt>apr-util/libaprutil.dsp</dt>
  15. <dd>Builds the dynamic libaprutil.dll library (no define required)</dd>
  16. <dt>apr-iconv/apriconv.dsp</dt>
  17. <dd>Builds the static apriconv.lib library (-D API_DECLARE_STATIC)</dd>
  18. <dt>apr-iconv/libapriconv.dsp</dt>
  19. <dd>Builds the dynamic libapriconv.dll library (no define required)</dd>
  20. </dl>
  21. <p>In order to prepare to use one of the <em>static</em> libraries above,
  22. your application must be compiled with the define shown above, so that the
  23. correct linkage is created. The APR authors intended the use of dynamic
  24. libraries by default, so application authors do not need any special
  25. defines in order to link to the dynamic library flavors.</p>
  26. <p>In order to build APR, you must use the proper dependencies. A good
  27. example of those dependencies is given in the apr-util/aprutil.dsw
  28. Developer Studio workspace. You can borrow the parts of that structure
  29. your application needs, that workspace defines both the dynamic and static
  30. library dependencies.</p>
  31. <p>The APR libraries (dynamic and static) are compiled with debugging symbols,
  32. even in Release builds. The dynamic library symbols are always usable,
  33. simply keep the correspond .pdb file in the same path as the library .dll.
  34. (E.g. both libapr.dll and libapr.pdb should be copied to the same path.)</p>
  35. <p>The static symbols will only be fully usable if your application does <em>not<em>
  36. link with the /pdbtype:sept flag! At the time your application links to
  37. an APR library, the corresponding _src.pdb file should exist in the original
  38. path the library was built, or it may be sufficient to keep the _src.pdb file
  39. in the same path as the library file. (E.g. apr.lib and fspr_src.pdb should
  40. reside together in your lib directory.) The later option is unconfirmed.</p>
  41. <p>In order to keep the symbols compiled into the static library, your application
  42. must use the linker's /debug flag. If you do not want the application to be
  43. debuggable with its corresponding .pdb file, omit the /debug flag and all debug
  44. symbolic information is discarded. Note that your application can only be
  45. debugged with the corresponding .pdb file created by the linker, unless you use
  46. /debugtype:coff or /debugtype:both in your link options.</p>
  47. </BODY>
  48. </HTML>