🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.graphics.explorer
2 messages
2 total messages Started by Jim Haxby Fri, 22 Jan 1993 19:36
compiler warning from mbuilder
#232
Author: Jim Haxby
Date: Fri, 22 Jan 1993 19:36
25 lines
1574 bytes
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);
      -------------------------------------------^
--- 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'


Are these warning bad? 
Any ways to eliminate the warnings?

Thanks in advance.
Re: compiler warning from mbuilder
#234
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads