Community
Participate
Working Groups
i am developing a c-program which is accessing a postgresql database (8.0.4). i am using the libpq library, which needs the option "-lpq" and the lib-directory "-L[dir]" for linking. i use cygwin as my compiler, debuger, make, etc. (i cant see the version of cywin, downloaded it on 11-26-2005) managed make produces the following linker-command which doesnt work for me: <code>gcc -LC:\Programme\PostgreSQL\8.0\lib -lpq -othesis.exe ./db.o ./init.o ./nsga2.o ./ui.o</code> i wrote my own make-file and use the following linker-command which works (note the order of parameters): <code>gcc -o thesis.exe ./db.o ./init.o ./nsga2.o ./ui.o -LC:\Programme\PostgreSQL\8.0\lib -lpq </code> to configure the managed make i went to project-properties, "c/c++ build", "tool settings", "gcc c linker". in libraries i addes my library-folder and in miscallaneous i added the linker flag "-lpq"
Customizing the order of inputs to a tool (e.g. the link order) is on the list for 3.1
(In reply to comment #0) > in miscallaneous i added the linker flag "-lpq" Instead of adding -lpq to the miscellaneous field, try adding "pq" to the Libraries list on the same property page that you add the library folder. Leo
This work item is deferred. Hopefully we can get to it for CDT 4.0
Returning to the pool as I'm not likely to have time to address this any time soon.
Is this still likely to be fixed in 4.0?
(In reply to comment #5) > Is this still likely to be fixed in 4.0? We are past the feature freeze date for 4.0 so I don't think that it's very likely.
Future means you commit to fix it in the Future. Inboxes can't make committments. Moving to '--'.
*** Bug 136040 has been marked as a duplicate of this bug. ***