News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

Makeobj fails to compile with svn #6592M

Started by jspaces, July 17, 2013, 07:47:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jspaces

When I tried to compile makeobj, it fails with the following message:

../build/default/dataobj/tabfile-makeobj.o: In function `tabfileobj_t::get_color(char const*, unsigned char)':
tabfile.cc:(.text+0x7c6): undefined reference to `display_get_index_from_rgb(unsigned char, unsigned char, unsigned char)'
collect2: error: ld returned 1 exit status
make: *** [../build/default/makeobj/makeobj] Error 1


It appears to be complaining about these values the dataobj/tabfile.cc file.

if(  *value=='#'  ) {
      uint32 rgb = strtoul( value+1, NULL, 16 ) & 0XFFFFFFul;
      return display_get_index_from_rgb( rgb>>16, (rgb>>&0xFF, rgb&0xFF );
}


If you need more information please let me know, thanks.

kierongreen

#1
Thanks - the simplest fix for this would involve incorporating simgraph16.cc into makeobj which seems overkill to me. Thinking of an alternative.

Edit - fixed in 6595:
When compiling makeobj dataob/tabfile.cc tabfileobj_t::get_color(const char *key, uint8 def) now uses just a dummy function.