The -frepo flag is best used when building executables rather than libraries. What it does is defer instantiating some template functions and just records the fact that it needs them in a .rpo file (one per cpp file). Then at link time, it consults the .rpo files to instantiate all of the missing functions just once. If you're building a library then you're liable to have a few functions missing unless you also perform an explicit "closure" step on its contents: gcc $(CFLAGS) $(LDFLAGS) -o junk <all .o files in library> Needless to say that this is a pain and absolutely specific to GCC. So no, I didn't try building PWLIB or OpenH323 like this. Chris --- Zygmuntowicz Michal <m.zygmuntowicz@onet.pl> wrote: > Did you check this flag with the latest pwlib and > openh323? I found > that -fdata-sections and/or -ffunction-sections > options caused problems > and solved it by removing them. If -frepo makes > compilation possible > without removal of these options that would be a > better solution:) > > ----- Original Message ----- > From: "Chris Rankin" <rankincj@yahoo.com> > Sent: Saturday, September 20, 2003 10:45 AM > Subject: RE: multiple definitions > linker error when building 2.0.5 > > > > --- shawn <sporter2545@rogers.com> wrote: > > > I'll admit to not being much on c/c++ (I'm a > > > telephony developer) since the > > > Makefile is full of STDCFLAGS should I set it to > > > -frepo?? > > > > No, just add this line above the bit about LDAP > > support: > > > > CFLAGS += -frepo # new bit > > > > # LDAP support > > ifdef HAS_LDAP > > > > SOURCES += gkldap.cxx > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > List: Openh323gk-users@lists.sourceforge.net > Archive: > http://sourceforge.net/mailarchive/forum.php?forum_id=8549 > Homepage: http://www.gnugk.org/ ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ List: Openh323gk-users@lists.sourceforge.net Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 Homepage: http://www.gnugk.org/