This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Dummy problem when linking


Hi, i have two objs (that i would like to make a lib):
rddpgsql.c rddpgsql0.c and im trying to link this
files against a source file (tstconn.c) that will use
symbos that belongs to the two file above with the
following command: gcc -otstconn
-I/usr/include/xharbour -L/usr/lib/xharbour -lpq
-lxharbour -lslang rddpgsql.o rddpgsql0.o tstconn.c 
and it tells me that there is unresolved symbols on
tstconn.c that are the symbols presente in the
rddpgsql.o(i saw them with nm) and the weird is that
if i put the statement '-lpq' after tstconn.c i get
unresolved symbols from libpq like ssl and krb5
functions called by that lib.

could anyone give me a clue on what is happening?

best regards,
[]´s daniel rangel moreira



	
	
		
_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: http://br.acesso.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]