Re: object file
From: Prawit Chaivong (prawit.c_at_gmail.com)
Date: 03/16/05
- Previous message: SpOiLeR: "Re: std::bitset, standard and endianess"
- In reply to: gouqizi.lvcha_at_gmail.com: "object file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Mar 2005 23:26:17 -0800
"gouqizi.lvcha@gmail.com" <gouqizi.lvcha@gmail.com> wrote in message news:<1110939699.765006.126320@l41g2000cwc.googlegroups.com>...
> Hi, All:
>
> I have an Linux object file, for example, foobar.o. Can I know which
> version
> of gcc build it?
>
> Rick
Hi,
you may need this line in your header file or cpp (up to you)
extern "C"
{
void your_asm_func();
....
....
....
}
I would add above in header file.
If you don't add you will have a problem when you link it.
Why? because c++ compiler mangle name difference from c compiler.
Regards,
- Previous message: SpOiLeR: "Re: std::bitset, standard and endianess"
- In reply to: gouqizi.lvcha_at_gmail.com: "object file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|