Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Compiler trigger en C sous Windows





Le 10 févr. 06, à 11:30, Jean-Max Reymond a écrit :

Le 10/02/06, Olivier Peaucelle Synthèse
Graphique<opeaucelle(at)synthesegraphique(dot)com> a écrit :
Du coup, j'ai modifié la ligne de commande en :

$ gcc -shared -o pstypes.dll -WI -dy --library-path/E/lib/ -l libpq.a
--out-implib XXX.o

et j'obtiens :

c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -llibpq.a
        collect2: ld returned 1 exit status

il faut que tu lui indiques où se trouve libpq.a

libpq.a se trouve dans e:\lib

C'est-à-dire ?
Comment faire ?
si j'écris
$ gcc -shared -o pstypes.dll -WI -dy --library-path/E/lib/ -l /E/lib/libpq.a
il me dit que -le:/lib/libpq.a n'existe pas !

(au fait j'ai oublié de préciser que j'avais copié e:\program files\PostreSQL\8.1\lib en e:\lib pour éviter le pb de l'espace dans le nom du chemin)

Olivier Peaucelle

(PS. désolé pour les 2 mails envoyés à votre adresse directement)




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group