agumon9 Posted September 26, 2016 Report Share Posted September 26, 2016 Hi all! I am having trouble importing UVM-SystemC library in Eclipse. It does not recognize any of the classes from that library. I installed uvm-systemc-1.0-alpha1 library and I am using Systemc-2.3.1 with Eclipse and Cygwin. When I try to write any of the code, for example: #include <uvm> class packet : public uvm_sequence_item{ }; It labels uvm_sequence_item red and says "Symbol 'uvm_sequence_item' could not be resolved". I added uvm-systemc in properties in library and added include paths to compiler settings in Eclipse. Quote Link to comment Share on other sites More sharing options...
Martin Barnasconi Posted September 26, 2016 Report Share Posted September 26, 2016 This is not a UVM-SystemC library but Eclipse configuration issue. Some things you could check: In the Project Explorer view, the project should be labeled as C/C++ project and contain a subdirectory "Includes". In this list you should see the cygwin and uvm-systemc include directories. If this is not the case, then your project properties are not well defined. Do a Index >> Rebuild Just build the example and see if the error disappear (such build also does start a reindexing Also note that UVM-SystemC puts all classes in the uvm namespace. This means you should explicitly prefix with uvm:: or define a using namespace uvm (only inside method implementations, not in global scope of header files) Quote Link to comment Share on other sites More sharing options...
agumon9 Posted September 27, 2016 Author Report Share Posted September 27, 2016 Thank you very much for the reply! I successfully did it by adding using namespace uvm; and resetting Eclipse because it did not react without resetting. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.