[cxx-abi-dev] vtables by different compilers
Jessica Han
jessica at cup.hp.com
Mon Jul 29 21:43:08 UTC 2002
The problem I am having is an execution error. My test case is a simple C++
helloworld, the application built and runs, but no output.
The test case is:
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
int main (){
cout <<"hello1"<<endl;
}
Then I compiled it with aCC's header using g++ compiler and link with aCC
run time. Attached is the test.i file and test.o file, build command is
aCC test.o on HPUX IPF.
in function
<std::basic_streambuf< char, std::char_traits< char > >::sputn( char
const*, long )
it should look up function pointer for <std::basic_filebuf< char,
std::char_traits< char > >::xsputn( char const*, long )
but it gets function pointer of <std::basic_filebuf< char, std::char_traits<
char > >::~std::basic_filebuf< char, std::char_traits< char > >() instead.
The vtable comes from aCC run time library.
Thanks.
----
Jessica Han
Open Source Tools
Hewlett-Packard
(408) 447-6154
>-----Original Message-----
>From: Martin v. Lowis [mailto:loewis at informatik.hu-berlin.de]
>Sent: Monday, July 29, 2002 12:51 AM
>To: jessica at cup.hp.com
>Cc: cxx-abi-dev at codesourcery.com
>Subject: Re: [cxx-abi-dev] vtables by different compilers
>
>
>"Jessica Han" <jessica at cup.hp.com> writes:
>
>> I am having a problem where g++ compiled code can't access
>aCC built vtable
>> properly, any suggestions on what's might be different
>between the two
>> compiler?
>
>Can you please elaborate on the nature of this problem? Does it fail
>to link, or does the resulting binary not work correctly?
>
>Regards,
>Martin
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.i
Type: application/octet-stream
Size: 542269 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20020729/4fa0f484/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.o
Type: application/octet-stream
Size: 261724 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20020729/4fa0f484/attachment.o>
More information about the cxx-abi-dev
mailing list