S
S
Stanislav Fateev2013-03-17 16:53:45
Programming
Stanislav Fateev, 2013-03-17 16:53:45

QtCreator+ns-3?

I want to use ns-3 network simulator scripts in my program whose interface is written (drawn in the designer) in Qt ( QtCreator 2.5.0). I read this FAQ and used the second option. I added tutorial/hello-simulator.cc to the Sources of the QtCreator project, copied the code to main.cpp, deleted the original hello-simulator.cc file, and added INCLUDEPATH += ~/ns-allinone-3.15/ns-3.15/build/ to . pro file. As a result, I got an error:
main.o:-1: In function `_GLOBAL__sub_I_main':
main.cpp:-1: error: undefined reference to `ns3::LogComponent::LogComponent(char const*)'
:-1 : error: collect2: error: ld returned 1 exit status

I tried using tutorial/first.cc but got the same error message.
In C ++ and Qt, I comprehend everything by trial and error, but independent attempts did not bring results, and I really want to figure it out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Yudaev, 2013-03-17
@svfat

The linker complains either about the missing dll or the absence of the function body.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question