|
|
Subject: ld error gcc aix - msg#00384
List: gcc.help
hi gurus! :)
Does anybody know why im getting the error:
g++ -o file1 -g -static-libgcc -b64 -L/usr/local/lib
file1.o file2.o file3.o file4.o file5.o
/usr/local/lib/libfcgi.a -lstdc++
ld: 0711-715 ERROR: File cgijgui.o cannot be
processed.
The file must be an object file, an import
file, or an archive.
melissa
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
RE: Looking for good Purify like memory check tool for gcc
If you want something that runs (only) on Linux, you might check out
Valgrind:
http://developer.kde.org/~sewardj/
Essentially it works by running your process in a sort of virtual
machine environment, so it can detect all sorts of weirdness, but it can
slow down your process quite a bit. Assuming that's not a problem for
you, this may be a good tool.
---
Tony Wetmore
Raytheon Solipsys
mailto:tony.wetmore@xxxxxxxxxxxx
http://www.solipsys.com
-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of Andy Howell
Sent: Friday, July 25, 2003 1:52 PM
To: Eljay Love-Jensen
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: Looking for good Purify like memory check tool for gcc
Eljay Love-Jensen wrote:
> Hi Andy,
>
> I recommend IBM Rational PurifyPlus for Linux, and IBM Rational
> PurifyPlus for Unix (Solaris).
>
> q.v. <http://www.rational.com/products/pqc/index.jsp>
>
> Or, alternatively, you can write your own general-purpose new, delete,
> new[] and delete[] (and/or malloc/alloc/realloc/free) routines which
> you've instrumented with start/end sentinels (for write-overruns) and
> allocation tracking (for memory leaks).
>
> For a cheaper solution, try running your code through Borland's
> CodeGuard. (Is CodeGuard still around...?)
Eljay,
Thanks. I've used Purify previously and was happy with it. I
checked
out the site, but could not get a price, as they are moving it over to
IBM's site.
This is for my own enjoyment, so I'm looking for something on the cheap,
preferably open source.
Andy
Next Message by Date:
click to view message preview
Re: sizeof and allignment on 32bit target
On Fri, Jul 25, 2003 at 11:28:05AM +0200, Eric de Jong wrote:
> Thank you, Jan Zizka, Roman Kellner
>
> I would expect that the allignment has only influence on the address of
> variables, not on the total size of a structure. It looks like the compiler
> calculates the size of the structure to be a multiple of the largest item in
> the
> structure.
> What I want is to allign each variable in the structure to it's own size, but
> the total size of the structure to be the actual size. Is this possible?
Without using packed and aligned attributes, this is not possible. This can be
a severe performance penalty on many architectures and are not supported by
other compilers.
According to the ISO C90 and C99 standards, the alignment of a structure or
union is at least the maximum of the alignments of each of its members. A
compiler can make structure and unions have even more alignment than the
alignment of the members, for example some ABI's on word based machines will
align any structure to a word boundary, even if all of the fields are chars,
and on the machine I just did an ABI for, the compiler will align any structure
with 2 or more words to double word alignment so the double word memory
instructions can be more often used. This wording has been in the C
specification ever since I can remember (and I used C on UNIX V6 PDP-11
machines).
The reason for this is to make arrays and p++ work correctly. If the size were
smaller, p++ would wind up pointing to unalgined memory.
Note, also you are not guaranteed that short/int/long are the same size or
alignment on different machines either. If you are reading files produced by
another computer, you have to worry about endian issues as well.
--
Michael Meissner
email: gnu@xxxxxxxxxxxxxxxxx
http://www.the-meissners.org
Previous Message by Thread:
click to view message preview
aix linking problem
hello all! I have a situation. I dunno why.
I have the following
g++ -o cgijgui -g -static-libgcc -b64 -L
/usr/local/lib cgijgui.o DynBu
ffer.o javaglob.o spinbuffer.o globplatformimp_unix.o
multibyte.o contextmodule
.o javagui.o javaguiplatform_unix.o unixsubs.o
cslocal.o login.o launch.o inifil
e.o appstart.o /usr/local/lib/libfcgi.a -lstdc++
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): A file or directory in the path
name does not exist.
ld: 0706-005 Cannot find or open file: libgcc_eh.a
ld:open(): A file or directory in the path
name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): A file or directory in the path
name does not exist.
ld: 0706-005 Cannot find or open file: libgcc_eh.a
ld:open(): A file or directory in the path
name does not exist.
I don't know why the library couldn't open libgcc.a?
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Next Message by Thread:
click to view message preview
linux gcc
hello all! I would like to ask if anyone has
encountered this problem.
`_IOREAD' undeclared (first use
this function)
is there a work around to this? I think this is
specific to redhat
melissa
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
|
|