Hi gem5-users, I've got two related questions:
Question 1: I implemented a set of functions in a simple non-SimObject C++ source and header (configuration.hh/configuration.cc) that contains some functionality that I intend to call from my SimObject. My SConscript file looks like this: Import("*") SimObject("Generator.py", sim_objects=["GeneratorSimObject"]) Source("generator.cc") Library('configuration', ['configuration.cc']) Is this best practice to add non-SimObjects to gem5? Question 2: The above SConscript builds my project successfully, however when I include configuration.hh in my SimObject source, generator.cc, I get the error: expected initializer before 'namespace' 13 | namespace: gem5 On line 13 of generator.cc. I cannot for the life of me figure out what's going wrong. BTW, I'm being naughty and using #pragma once. I hope that's not the problem. Regards, - Olumide _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org