Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » values.h - where can I get it?

UBBFriend: Email this page to someone!    
Author Topic: values.h - where can I get it?
kilowatt
Junior Member
Member # 62

posted March 18, 2002 12:56 AM      Profile for kilowatt     Send New Private Message      Edit/Delete Post  Reply With Quote 
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 ).

I tried commenting out the #import statement, hoping that values.h was already accounted for somehow... but that generated a few more errors

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

thanks!


Posts: 13 | From: /dev | Registered: Aug 2001  |  IP: Logged
willy wonka
Member
Member # 32

posted March 19, 2002 06:28 AM      Profile for willy wonka   Author's Homepage        Edit/Delete Post  Reply With Quote 
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


Posts: 92 | Registered: Aug 2001  |  IP: Logged
kilowatt
Junior Member
Member # 62

posted March 19, 2002 11:15 PM      Profile for kilowatt     Send New Private Message      Edit/Delete Post  Reply With Quote 
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.

code:

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


any ideas?


from DragAndDrop.cxx, lines 90 through 107:

code:

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 }
};

[ March 19, 2002: Message edited by: kilowatt ]


Posts: 13 | From: /dev | Registered: Aug 2001  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2