On Thu, Feb 08, 2007 at 11:53:21PM +0100, cstrato wrote: ... > >Maybe there's some subtle linker problem, or a problem with the > >representation of strings > > > > > > > What do you mean with linker problem? > Nothing very specific, but generically wrong options, wrong objects/libraries, or wrong order of the first 2. "Wrong" includes omitting something that should be there or including something that shouldn't.
Linking on OS-X is unconventional relative to other systems I have used. In particular, one usually gets lots of errors about duplicate symbols (which can be turned off, at some risk) and needs to specify flat rather than 2-level namespace. There's lots more if you look at the linker page (man ld). Similar issues can arise at the compiler phase too. Another fun thing on OS-X is that they have a libtool that is different from the GNU libtool, and your project might use both. So you need to be sure to get the right one. But it's unlikely you could even build if that were an issue. If different parts (e.g., R vs your code) are built with different options, that can cause trouble. For example, my Makefile has MAINCXXFLAGS := $(shell R CMD config --cppflags) -std=c++98 -Wall -I$(TRUESRCDIR) This relies on GNU make features. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel