🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.explorer
Article #234

Re: compiler warning from mbuilder

#234
From: Dave Shreiner
Date: Fri, 22 Jan 1993 22:37
44 lines
2621 bytes
In article <1993Jan22.193633.11579@alw.nih.gov>, lnspet@forest.nia.nih.gov (Jim Haxby) writes:
> I compile my program with the module builder and I
> get the following warnings:
> 
> 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
>         cxLatPtrGet(lattice_2d, 0, &int_ptr, 0, 0);
>       -------------------------------------------^

   For this one, the compiler is just swquacking about the pointer in the
third argument.  No real harm, but if you really want to get around the
problem, try 

	cxLatPtrGet(lattice_2d, 0, (void *) &int_prt, 0, 0);

> --- ReadBin ---
>         rm -f ReadBin
>         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    
> /usr/bin/ld:
> Warning: malloc: multiply defined
>         previous (used) definition from '/usr/lib/libc_s.a';
>         new (ignored) definition from '/usr/lib/libmpc.a'
> Warning: free: multiply defined
>         previous (used) definition from '/usr/lib/libc_s.a';
>         new (ignored) definition from '/usr/lib/libmpc.a'
> Warning: realloc: multiply defined
>         previous (used) definition from '/usr/lib/libc_s.a';
>         new (ignored) definition from '/usr/lib/libmpc.a'
> 

   As for these guys, there are several versions of the listed commands
( malloc, free, realloc ) depending on which library you use.  In this case,
you've got two libraries with the same function names in them.  No problem,
and no real solution either.  Personally, I use this to flag when the 
module compile is done.

Thanx,
Dave

  ---------------------------------------------------------------------------

   Dave Shreiner                                        <shreiner@sgi.com>
   Silicon Graphics, Inc.                                (415) 390 - 5063

  "There's never time to say all the things we need to say" - Fates Warning
Technical Details
Message-ID: <1993Jan22.223735.14213@odin.corp.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!arioch.clubfed.sgi.com!shreiner
References: <1993Jan22.193633.11579@alw.nih.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!odin!arioch.clubfed.sgi.com!shreiner
From: shreiner@arioch.clubfed.sgi.com (Dave Shreiner)
Newsgroups: comp.graphics.explorer
Subject: Re: compiler warning from mbuilder
Message-ID: <1993Jan22.223735.14213@odin.corp.sgi.com>
Date: 22 Jan 93 22:37:35 GMT
References: <1993Jan22.193633.11579@alw.nih.gov>
Sender: news@odin.corp.sgi.com (Net News)
Organization: Silicon Graphics, Inc.
Lines: 44
Nntp-Posting-Host: arioch.clubfed.sgi.com