Hi,

        I am trying to compile a software framework with GEM5. I have compiled 
my code into a static library using make. After that I have added these lines 
to SContruct file:

# add the framework library path to the main environment
main.Append(CPPPATH = 
['/home/opensilicon/Codes/gem5-stable/src/dev/framework/include'])
main.Append(LIBPATH = ['/home/opensilicon/Codes/gem5-stable/src/dev'])
main.Append(LIBS = ['libfw'])

    I am calling functions from the library in the Disk_Image.cc file. It 
compiles successfully but during Linking I get the following error:

In function `SsdDiskImage':
/home/opensilicon/Codes/gem5-stable/build/X86/dev/disk_image.cc:63: undefined 
reference to `fw_init(unsigned char)'


Although this function compiles suceessfully and is in the lib. What am I 
missing?

Regards,
Hasan Ijaz
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to