(g++2.95) can't link to lib [Resolved]

Igor Markov imarkov@cs.ucla.edu
Fri Oct 1 00:00:00 GMT 1999


  resolved.
  -l needs to go *after* the *.o files (why?)
  the search options needs to be passes to the
  linker via  -Wl,-soname,YOUSTUFFHERE  and
  -Wl,-rpath,YOURSTUFFHERE

  see man ld for details on -soname and -rpath
  (corresp. to -h and -R for SunCC on Solaris,
   but SunCC knows how to pass to the linker --
   I was expecting the same from gcc/g++)

  In fact, I have a neat setup when I can use the
  same Makefile for Sun CC and g++ --- let me know
  if anyone's interested.
		
					Igor
-- 
  Igor Markov  office: (310) 206-0179   
  http://vlsicad.cs.ucla.edu/~imarkov


More information about the Gcc-help mailing list