468,771 Members | 1,974 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,771 developers. It's quick & easy.

Compilation error with g++ 3.3.2 on AIX 5.3

Hi,

i have a simple makefile which looks like this:
CArchive: CFileRw.o CArchive.o CMain.o
g++ -o CArchive CFileRw.o CArchive.o CMain.o 3rdparty_1.a
CFileRw.o: CFileRw.cxx HCommon.h
g++ -c CFileRw.cxx
CArchive.o: CArchive.cxx HCommon.h
g++ -c CArchive.cxx
CMain.o: CMain.cxx HCommon.h
g++ -c CMain.cxx
clean:
rm CArchive CFileRw.o CArchive.o CMain.o
When i try complining this on AIX 5.3 with g++ 3.3.2. It gives the
below mentioned error
g++ -o CArchive CFileRw.o CArchive.o CMain.o 3rdparty_1.a
ld: 0711-447 SEVERE ERROR: Shared object 3rdparty_1.a
The .loader section has been truncated. The object is being ignored.
collect2: ld returned 12 exit status
make: 1254-004 The error code from the last command is 1.
If somone can point out as to whats going wrong here, that would be
nice.
thanks,

Mar 1 '07 #1
1 1918
nu****@gmail.com wrote:
i have a simple makefile which looks like this:
CArchive: CFileRw.o CArchive.o CMain.o
g++ -o CArchive CFileRw.o CArchive.o CMain.o 3rdparty_1.a
CFileRw.o: CFileRw.cxx HCommon.h
g++ -c CFileRw.cxx
CArchive.o: CArchive.cxx HCommon.h
g++ -c CArchive.cxx
CMain.o: CMain.cxx HCommon.h
g++ -c CMain.cxx
clean:
rm CArchive CFileRw.o CArchive.o CMain.o
When i try complining this on AIX 5.3 with g++ 3.3.2. It gives the
below mentioned error
g++ -o CArchive CFileRw.o CArchive.o CMain.o 3rdparty_1.a
ld: 0711-447 SEVERE ERROR: Shared object 3rdparty_1.a
The .loader section has been truncated. The object is being ignored.
collect2: ld returned 12 exit status
make: 1254-004 The error code from the last command is 1.
If somone can point out as to whats going wrong here, that would be
nice.
There is nothing in C++ language definition that concerns "the .loader
section" or its truncation. You need to ask in the newsgroup that deals
with your compiler/linker. If I had to speculate, I'd say that your
library is corrupt, but that's not a C++ language issue.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Mar 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by konf | last post: by
6 posts views Thread by Joachim | last post: by
2 posts views Thread by James Zhuo | last post: by
1 post views Thread by BSand0764 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.