ucb-bar / riscv-sodor

educational microarchitectures for risc-v isa
Other
688 stars 155 forks source link

fix bug: ‘string’ does not name a type; #37

Closed higuoxing closed 6 years ago

higuoxing commented 6 years ago

string is provided by std::string

or the building process will be failed

higuoxing commented 6 years ago

Well, this is the whole information ...

In file included from <command-line>:0:0:
/home/me/Documents/WorkSpace/riscv-sodor/emulator/common/verilator.h:15:19: error: ‘string’ does not name a type; did you mean ‘stdin’?
   bool open(const string& name) override {
                   ^~~~~~
                   stdin
/home/me/Documents/WorkSpace/riscv-sodor/emulator/common/verilator.h:15:8: error: ‘bool VerilatedVcdFILE::open(const int&)’ marked ‘override’, but does not override
   bool open(const string& name) override {
        ^~~~
make[2]: *** [VTop.mk:63: emulator.o] Error 1
make[2]: Leaving directory '/home/me/Documents/WorkSpace/riscv-sodor/emulator/rv32_1stage/obj_dir'
make[1]: *** [/home/me/Documents/WorkSpace/riscv-sodor/emulator/common/Makefile.include:104: emulator] Error 2
make[1]: Leaving directory '/home/me/Documents/WorkSpace/riscv-sodor/emulator/rv32_1stage'
make: *** [Makefile:108: emulator/rv32_1stage/emulator] Error 2
redpanda3 commented 6 years ago

Thank you. I have the same issue.

higuoxing commented 6 years ago

Thank you. I have the same issue.

Hi, you could use librecores/riscv-sodor, these bugs are fixed there : )

edwardcwang commented 6 years ago

Fixed by #42