As I previously mentioned, you did not attach the libraries that your old code was using and you're not telling us the errors you see in the compiler (or execution).
As a consequence, the best suggestion we can give is very generic, like "read the changelings in ns-3" or "use a debugger" - or witty answers like "with calm and patience".