values.h - where can I get it?

Find out how to get that @*&^$&@ thing to compile!

values.h - where can I get it?

Postby kilowatt » Mon Mar 18, 2002 8:56 am

I was trying to compile libdnd, and it says it can't find values.h. (I couldn't find it either with locate or google.com [img]images/icons/tongue.gif"%20border="0[/img] ).

I tried commenting out the #import statement, hoping that values.h was already accounted for somehow... but that generated a few more errors [img]images/icons/tongue.gif"%20border="0[/img]

Any idea as to an implementation of values.h on Mac OS X?

thanks!
kilowatt
 
Posts: 13
Joined: Thu Aug 30, 2001 7:00 pm
Location: /dev

Re: values.h - where can I get it?

Postby orange1 » Tue Mar 19, 2002 2:28 pm

looks like values.h is an older gnu c file. according to itself:
/* This interface is obsolete. New programs should use <limits.h> and/or <float.h> instead of <values.h>. */

i wonder if you could just replace <values.h> with <limits.h> and <float.h>

that or get a copy of gnu c from '97 and see if the values.h from there will work.
--
-willy
Freedom will henceforth be compulsory. -Random Party Manifesto
orange1
 
Posts: 92
Joined: Tue Aug 21, 2001 7:00 pm

Re: values.h - where can I get it?

Postby kilowatt » Wed Mar 20, 2002 7:15 am

thanks for your reply,

I did come accross that on one of my searches, and it didn't work either. complainted about something being undefined.

<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>
c++ -I. -g -O2 -I/usr/X11R6/include -c DragAndDrop.cxx
DragAndDrop.cxx:107: initialization to `char *' from `unsigned char *' changes s ignedness
DragAndDrop.cxx:107: initialization to `char *' from `unsigned char *' changes s ignedness
DragAndDrop.cxx:107: initialization to `char *' from `unsigned char *' changes s ignedness
...snip...
make: *** [libDnd++.a] Error 1
</pre>[/quote]
any ideas?


from DragAndDrop.cxx, lines 90 through 107:
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>
static CursorData DndCursor[DndEND]={
{ 0,0,NULL,NULL,0,0,0 },
{ grey_width, grey_height,grey_bits,grey_mask_bits,
grey_x_hot,grey_y_hot},
{ file_width,file_height,file_bits,file_mask_bits,
file_x_hot,file_y_hot},
{ files_width,files_height,files_bits,files_mask_bits,
files_x_hot,files_y_hot},
{ text_width,text_height,text_bits,text_mask_bits,
text_x_hot,text_y_hot },
{ dir_width,dir_height,dir_bits,dir_mask_bits,
dir_x_hot,dir_y_hot },
{ link_width,link_height,link_bits,link_mask_bits,
link_x_hot,link_y_hot},
{ app_width,app_height,app_bits,app_mask_bits,
app_x_hot,app_y_hot },
{ url_width,url_height,url_bits,url_mask_bits,
url_x_hot,url_y_hot },
{ mime_width,mime_height,mime_bits,mime_mask_bits,
mime_x_hot,mime_y_hot }
};
</pre>[/quote]

[ March 19, 2002: Message edited by: kilowatt ]</p>
kilowatt
 
Posts: 13
Joined: Thu Aug 30, 2001 7:00 pm
Location: /dev


Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 56 guests

cron