PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, June 26, 2022

[FIXED] How to connect postgreSQL to c++

 June 26, 2022     c++20, compiler-errors, postgresql     No comments   

Issue

I have been following this video to install the linkage between postgreSQL and C++ (https://www.youtube.com/watch?v=qDiC1Wja6Og), and after following all the steps, i get this error: "The code execution cannot proceed because LIBPQ.dll was not found." even though i went into the postgreSQL directory and found the file. I have no clue how to fix it, i've tried reinstalling postgres and i've restarted my pc each time it was needed. Any clues or solutions would be appreciated thanks


Solution

Try put libpq.dll into directory of your project build also you need to add libeay32.dll, libiconv-2.dll and libintl-8.dll. You can take all these libraries from Postgres installation

|---app.exe
|---libpq.dll
|---libeay32.dll
|---libiconv-2.dll
|---libintl-8.dll

or add path to libpq.dll into the path environment of your os



Answered By - arutar
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing