home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / explorer / 477 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  2.5 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!arioch.clubfed.sgi.com!shreiner
  2. From: shreiner@arioch.clubfed.sgi.com (Dave Shreiner)
  3. Newsgroups: comp.graphics.explorer
  4. Subject: Re: compiler warning from mbuilder
  5. Message-ID: <1993Jan22.223735.14213@odin.corp.sgi.com>
  6. Date: 22 Jan 93 22:37:35 GMT
  7. References: <1993Jan22.193633.11579@alw.nih.gov>
  8. Sender: news@odin.corp.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.
  10. Lines: 44
  11. Nntp-Posting-Host: arioch.clubfed.sgi.com
  12.  
  13. In article <1993Jan22.193633.11579@alw.nih.gov>, lnspet@forest.nia.nih.gov (Jim Haxby) writes:
  14. > I compile my program with the module builder and I
  15. > get the following warnings:
  16. > ccom: Warning: unformat_to_3dLat.c, line 87: Argument 3 Type Doesn't Match prototype description; prototype: pointer to pointer to void is different from actual: pointer to pointer to int
  17. >         cxLatPtrGet(lattice_2d, 0, &int_ptr, 0, 0);
  18. >       -------------------------------------------^
  19.  
  20.    For this one, the compiler is just swquacking about the pointer in the
  21. third argument.  No real harm, but if you really want to get around the
  22. problem, try 
  23.  
  24.     cxLatPtrGet(lattice_2d, 0, (void *) &int_prt, 0, 0);
  25.  
  26. > --- ReadBin ---
  27. >         rm -f ReadBin
  28. >         cc -o ReadBin  /usr/explorer/lib/cxMcw.o   ReadBin.mdw.o unformat_to_3dLat.o -g -prototypes -cckr -float  -L  -L/lib -L/usr/lib   -L/usr/explorer/lib -lfortranApi -lapi -lcxna -L/usr/lib -lm   -lsun -lc_s -lmpc    
  29. > /usr/bin/ld:
  30. > Warning: malloc: multiply defined
  31. >         previous (used) definition from '/usr/lib/libc_s.a';
  32. >         new (ignored) definition from '/usr/lib/libmpc.a'
  33. > Warning: free: multiply defined
  34. >         previous (used) definition from '/usr/lib/libc_s.a';
  35. >         new (ignored) definition from '/usr/lib/libmpc.a'
  36. > Warning: realloc: multiply defined
  37. >         previous (used) definition from '/usr/lib/libc_s.a';
  38. >         new (ignored) definition from '/usr/lib/libmpc.a'
  39.  
  40.    As for these guys, there are several versions of the listed commands
  41. ( malloc, free, realloc ) depending on which library you use.  In this case,
  42. you've got two libraries with the same function names in them.  No problem,
  43. and no real solution either.  Personally, I use this to flag when the 
  44. module compile is done.
  45.  
  46. Thanx,
  47. Dave
  48.  
  49.   ---------------------------------------------------------------------------
  50.  
  51.    Dave Shreiner                                        <shreiner@sgi.com>
  52.    Silicon Graphics, Inc.                                (415) 390 - 5063
  53.  
  54.   "There's never time to say all the things we need to say" - Fates Warning
  55.