Undefined reference to functions declared in lindo.h

I have the same problem described in this post:

undefined reference to the function declared in the * .h file

I am writing a C / C ++ project using Eclipse.

How can I solve the same problem?

I tried: Project -> properties -> c ++ build -> settings -> Tool Settings -> Gcc Libraries - C ++ -> Libraries -> Libraries (-l)

and adding libraries to / lindoappi / bin / linux 34.

but that will not work. I added a directory:

Project -> properties -> c ++ build -> settings -> tool settings -> Gcc C ++ libraries -> libraries -> library search path

Console output:

**** Build configuration Debugging for LINDO_test project ****

: LINDO_test : GCC ++ Linker g++ -L/home/mario/lindoapi/bin/linux32 -o "LINDO_test". /src/LINDO _test.o./src/test_001.o -lliblindo /usr/bin/ld: -lliblindo collect2: ld 1 make: *** [LINDO_test] 1

:

? .

0
1

:

Project → properties → c ++ build → settings → → Gcc ++ linker → libraries → libraries (-l)

: lindo64 mosek64 , .

: Project → properties → c ++ build → settings → → Gcc ++ linker

, ... /lindoapi/bin/linux 64 Project → properties → c ++ build → settings → → Gcc ++ linker → libraries → (-L)

: $ {COMMAND} ${OUTPUT}... -Wl, -rpath =/opt/lindoapi/bin/linux64 ${INPUTS}

- Eclipse -soname, -out-implib -output-def Wl, . , .

, .

.

0

All Articles