Cant Compile c++ library with static library -


i downloaded c++ library want use simulation.

it includes: 1- source file "main.cpp" 2- header files in "include" folder 3- static precompiled library "libhj.a" 4- cmakelist.txt

in manual suggesting use gnu & cmake compile , produce executable file.

i tried several solution out hope! 1- downloaded mingw , cmake on windows 7 , tried use them first produce makefile, use "make" command produce exe file, didn't work properly. 2- switched linux "ubuntu" , get:

`enter code here`cmakefiles/exe.dir/src/main.cpp.o: in function `main': main.cpp:(.text.startup+0x2d1): undefined reference `hjb_sl::hjb_sl(mrp, cp, cp, pp, gp, ppp, slp)' main.cpp:(.text.startup+0x2d9): undefined reference `hjb::initfiles() const' main.cpp:(.text.startup+0x2ea): undefined reference `hjb::postprocess()' main.cpp:(.text.startup+0x49c): undefined reference `hjb_fd::hjb_fd(mrp, cp, cp, pp, gp, ppp, fdp)' collect2: ld returned 1 exit status make[2]: *** [exe] error 1 make[1]: *** [cmakefiles/exe.dir/all] error 2 make: *** [all] error 2` 

could body guide me do? thanks.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -