Hi. The automatically generated create() method will only exist if your
SimObject can be constructed with a constant reference to the parameter
type. Or in other words, if it has a constructor of the form
TraceManager(const TraceManagerParams &params). You can disable that by
just adding a dummy parameter like an int which you don't have to use for
anything. This is somewhat like how c++ operator overloading disambiguates
the i++ and the ++i cases.

Gabe

On Fri, Apr 9, 2021 at 7:11 PM weiwei Zhao via gem5-users <
[email protected]> wrote:

> The compile error like this:
>
> build/ARM/params/TraceManager.do: In function
> `TraceManagerParams::create() const':
> /data1/zhaoweiwei/gem5/base_v21.0.0.0/build/ARM/params/TraceManager.cc:53:
> multiple definition of `TraceManagerParams::create() const'
> build/ARM/sim/tracemanager.do:/data1/zhaoweiwei/gem5/base_v21.0.0.0/build/ARM/sim/tracemanager.cc:156:
> first defined here
> collect2: error: ld returned 1 exit status
> scons: *** [build/ARM/gem5.debug] Error 1
> scons: building terminated because of errors.
> _______________________________________________
> gem5-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
>
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to