Compiler error with libpq++
От
Wenjin Zheng
Тема
Compiler error with libpq++
Дата
Msg-id
E3E65B3C4E12D311BE6900A0C9EC2FA1206E5C@GENOMICS1
Список
Дерево обсуждения
Compiler error with libpq++ Wenjin Zheng <wenjin.zheng@lsbc.com>
Re: Compiler error with libpq++ Tom Lane <tgl@sss.pgh.pa.us>
Hi; I am using libpq++ and Standard Template Library to write some programs for postgres6.5. I am trying to use map template to store tuples retrieved from postresql database. I defined map > in my program: typedef map > SQL_Map; If I did not include and did not use link option from the make file used in libpq++, also I did not use any class from libpq++.H. Everything is fine, I can compile the class fine. I simply use "g++ -c myclass.cpp" and generate myclass.o file. However if I include and use the makefile come with libpq++ compiling option, I got an error as: "/usr/ccs/bin/as: "/var/tmp/cc00POXR.s", line 3512: error: can't compute value of an expression involving an external symbol" I believe it has something to do with using string as the key for the map and using libpq++.H at the same time, because map > is fine, but I don't know what is the problem. Could anyone help me out? Your help will be greatly appreciated. Sincerely Wenjin Zheng, Ph.D. Bioinformatic Analyst Large Scale Biology, Corp. Vacaville, CA 95688 wenjin.zheng@lsbc.com
В списке pgsql-hackers по дате отправления