I am new to c++, so I apologize for the possibly poorly formulated question below.
I am trying to use gnu glpk library, and I am doing something wrong.
I code in visual studio 2010. To use the library, I have included the #include <glpk.h> command. In the code I pass through it (visible below) I get 15 instances of
1>lkj.obj : error LNK2019: unresolved external symbol _glp_create_prob referenced in function _main
and similar.
I am sure there is something silly I just don't know that I am supposed to do.
Modified the text! I think you are right about the dependencies, but I am not sure how to make this work.. All the linker --> input --> additional dependencies allows me to do is write names of files.
I have tried writing glpk_4_47.lib here, but it seems not to help my situation. (--> this is the lib file that came with the package)
I have tried writing glpk_4_47.lib here, but it seems not to help my situation. (--> this is the lib file that came with the package)
So you get a linker error telling you the .lib fies is not found? In this case the .lib file probably is not in one of the directories VC++ searches for library files. Where have you put it?
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
I made it past that problem by adding files to the resources folder. I now run the program fine, but when the cmd prompt appears it appears with a message claiming that the dll file used is missing from my computer, any ideas how to change the directory under which it looks for the dll?
I made it past that problem by adding files to the resources folder. I now run the program fine, but when the cmd prompt appears it appears with a message claiming that the dll file used is missing from my computer, any ideas how to change the directory under which it looks for the dll?
The easiest is to put the DLL in the same folder as your executable.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Bookmarks