Jump to content

Pat Heuvel

Members
  • Content Count

    9
  • Joined

  • Last visited

Posts posted by Pat Heuvel


  1. Gday,

    Thanks for making this tool available! I've just tried to use it on a C++ Builder 32-bit binary and got the following:

     

    map2pdb - Copyright (c) 2021 Anders Melander
    Version 3.1.2
    
    Fatal: [   44] Modules overlap: C:\PROGRAM, C:\PROGRAM
    0001:0003AD33 00000297 C=CODE    S=_TEXT    G=(none)   M=C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\22.0\LIB\WIN32\DEBUG\RTL.LIB|System.Internal.ExcUtils ACBP=A9

    Am I doing something wrong? My command line is

    D:\Devel\CPP\BlueVane\BVMultisport\Win32\Debug>map2pdb BVMultisport.map -bind

    Executable was compiled under RS 11.3, with recommended options for the mapfile.

     

    Thank you!


  2. Gday all,

     

    I have an application that was working prior to Monterey. It uses the PostgreSQL libraries libpq.dylib (and its related dylibs). Since Monterey, it can't successfully load libpq.dylib. I realise this could also mean that it can't succesfully load one of the libraries upon which libpq relies. I have added an FDPhysPgDriverLink instance to my data module, and login, database, server and port vales are correct.

     

    After some research, I came across this article:

    http://clarkkromenaker.com/post/library-dynamic-loading-mac/

    I expect I need to add an LC_RPATH command to my binary, pointing to @executable_path/../Libraries (which is where I put libpq.dylib et al).

     

    I've tried doing this in a shell on the Mac, but that fails because it invalidates the code signing. Is there a way to add this stuff (ideally during the build process within the IDE)?

     

    Oh, I'm using RAD Studio 11.2 (plus patch) on Windows 10 Pro PC and XCode 14.1 on Macbook Pro M1.

     

    Thanks,

    Pat


  3. You should only need the bitness that relates to your binary. But you will also get the same message if the libraries that libpq needs aren't there, so make sure you also have:

    libeay32.dll

    libintl-8.dll

    ssleay32.dll

    in the same directory.

     

    If you still need the 32-bit libpq, you can get it by downloading an old pgadmin.

×