[Mono-dev] Undefined static pointer link error
GrahamNewton
graham.newton at peavey-eu.com
Wed Sep 24 09:40:46 EDT 2008
Hi
I am trying to cross compile the latest trunk SVN checkout of mono. In
mono/utils/mono-value-hash.c line 69 there is this line of code:
static gpointer KEYMARKER_REMOVED = &KEYMARKER_REMOVED;
which never appears to be referenced anywhere else.
Apart from the fact that I have no idea what this is for or does, I get an
undefined symbol linker error.
Examining mono-value-hash.o shows this:
586-nm mono-value-hash.o
U KEYMARKER_REMOVED
hacking the Makefile by hand to remove -O2 compiler switches
I get
586-nm mono-value-hash.o
00000000 d KEYMARKER_REMOVED
My gcc version is
586-gcc --version
586-gcc (GCC) 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-3.0.0.0702771
2007-03-11)
Can someone explain what KEYMARKER_REMOVED does and do similar problems
occur when compiling for other platforms?
Thanks
Graham
--
View this message in context: http://www.nabble.com/Undefined-static-pointer-link-error-tp19649144p19649144.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list