0

I face a problem when i create a DLL project through visual studio express 2012. I'm already link to a boost library folder and also include a header file which is into my source code.

But when I build the project with write a code such as below:-

boost::any result = dataBase.get("SELECT * FROM FOOD_LIST");

It will get an error and build unsuccessful.

Example error that I get:-

error LNK1120:1 unresolved externals

Can someone help me or give me an idea to solve the problem? Thank you.

  • Yes, you yourself can help: look at which symbol is unresolved, and see where it is defined. Include that in the link – sehe Jan 24 '14 at 01:35
  • possible duplicate of [What is an undefined reference/unresolved external symbol error and how do I fix it?](http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix) – sehe Jan 24 '14 at 01:35
  • But when I comment the code show at above, the project will create successful. So, I don't understand what mistake done by me. – user3227056 Jan 24 '14 at 02:47
  • You should look at which function is unresolved. Nothing else. It could be Database::get or the assignment operator – sehe Jan 24 '14 at 07:34

0 Answers0