Someone should just wrap the declarations with this in the header
(don't wrap the #include statement though.  I'd do it, but I'm mobile.

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __cplusplus
}
#endif

On Thu, Dec 15, 2011 at 8:43 AM, Ali Saidi <[email protected]> wrote:
> extern "C"?
>
> Ali
>
>
> On Thu, 15 Dec 2011 10:20:39 -0500, <[email protected]> wrote:
>>
>> When I tried to use m5_dump_stats and m5_reset_stats in my program, the
>> functions are written in assembly which is only recognized by gcc, not by
>> g++. So I cannot use these funcs when my source code is C++. I just wonder
>> if someone can help give me any hint or even a link to where I can rewrite
>> the assembly file for c++.
>>
>> Thanks.
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to