Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Use PostgreSQL C Api
Forum Updated to NodeBB v4.3 + New Features

[Solved] Use PostgreSQL C Api

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dvillalobos
    wrote on last edited by
    #1

    Hi all,

    I have a project that uses MySQL C Api to connect to MySQL, I want to make some test in PostgreSQL.
    I use this line to compile with mysql, does any one know what do I have to write for PostgreSQL?

    @
    unix:LIBS += -L/usr/lib -lmysqlclient
    @

    Regards

    David

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dvillalobos
      wrote on last edited by
      #2

      The line has to be:

      @
      unix:LIBS += -L/usr/lib -lpq
      @

      Regards

      David

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Actually -L/usr/lib should not be necessary. It does not hurt to have it though.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dvillalobos
          wrote on last edited by
          #4

          Hi,

          Good to know.

          Regards

          David

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved