Hi everyone,
I'm (test) trying to add a library to use in my NS3 code.
I created this library in /home/cinnamon/libraries/libgpu/.
The path to the header file (called "one.h") is thus this: /home/cinnamon/libraries/libgpu/src/.
The path to the library (libgpu.a) is: /home/cinnamon/libraries/libgpu/Debug/.
I followed the instructions
here to link it to my project. I made this wscript for the cinnamon.cc test I'm trying to do:
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
obj = bld.create_ns3_program('cinnamon', ['core', 'point-to-point', 'internet', 'applications'])
obj.source = 'cinnamon.cc'
obj.env.append_value("CXXFLAGS", "-I/home/cinnamon/libraries/libgpu/src")
obj.env.append_value("LINKFLAGS", ["-L/home/cinnamon/libraries/libgpu/Debug"])
obj.env.append_value("LIB", ["gpu"])
Now when I try to do a build, I get linker errors about one() (the only function in my library).
Maybe it's not running the script? If I do ./waf --no-task-lines -v, it doesn't seem to have the call to the library anywhere in the listing for "runner".