C ++ NetBeans Linking External Sources and .so Files

I am writing a C ++ program on Linux using NetBeans. I'm having difficulty setting it up to use external sources / shared objects. I have .so files from a compiled external package and source files that come with it.

So far I:

  • specified for the project to include all the source and header files (under "Project Properties" → "Build Compiler")
  • indicated .so files corresponding to the external source code (in the section "Project Properties" → "Build-Linker")

When I try to declare an object defined in external sources, NetBeans does not give me any syntax errors and even automatically completes the name of the object for me. However, when I create the program, I get the error "undefined reference to" this object.

Am I doing something terribly wrong?

EDIT: In response to a question about quamrana, this is one of the output lines in the console when trying to create.

g++  -o dist/Debug/GNU-Linux-x86/JAUSTester build/Debug/GNU-Linux-x86/MainScreen.o build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux-x86/moc_MainScreen.o    -L/usr/lib -Wl,-rpath /usr/local/lib/active /usr/local/lib/active/libcxutils.so -Wl,-rpath /usr/local/lib/active/libjauscore.so -Wl,-rpath /usr/local/lib/active/libjausextras.so -Wl,-rpath /usr/local/lib/active/libjausmobility.so -Wl,-rpath /usr/local/lib/active/libtinyxml.so -lQtGui -lQtCore -lpthread

The .so files that I want to include are the ones listed there in / usr / local / lib / active /.

+3
source share

All Articles