Hi Francisco,

Thanks for the quick reply! Yes I did; the .cc/.hh files are present and
are in the same directory. I've also realized something else: the file I'm
creating should reside in X86/mem/ (since that's where the .cc/.hh files
reside and the SConscript in that directory was updated), while SCons is
failing and stating that the file can't be found in the X86/sim directory.

- Alex

On Thu, May 7, 2020 at 11:04 AM Francisco Carlos via gem5-users <
[email protected]> wrote:

> Did you create myFile.cc? myFile.cc should be in the same directory of the
> Sconscript that you added because you used the path 'myFile.cc' to the file.
>
> I hope this helps.
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------
> Francisco Carlos Silva Junior
> Phd Student
>
> ------------------------------
> *De:* Alex Freij via gem5-users <[email protected]>
> *Enviado:* quinta-feira, 7 de maio de 2020 11:31
> *Para:* [email protected] <[email protected]>
> *Cc:* Alex Freij <[email protected]>
> *Assunto:* [gem5-users] Adding new source files
>
> Hi all,
>
> I'm trying to understand how to add source files to the gem5 project
> without the need to create a SimObject. I've added `Source('myFile.cc')`
> into the respective SConscript file, but when I try to build I get this
> message:
>
> scons: *** [build/X86/sim/myFile.o] Source `build/X86/sim/myFile.cc' not 
> found, needed by target `build/X86/sim/myFile.o'.
> scons: building terminated because of errors.
>
> This is a very rookie question, but guidance would be appreciated!
>
> - Alex
> _______________________________________________
> 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