Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: xnn on October 14, 2015, 07:30:26 PM



Title: VS2015 - how to include secp256k1 in my project?
Post by: xnn on October 14, 2015, 07:30:26 PM
Hi!
Im using Visual Studio 2015 C++ and trying to include secp256k1 into my project.

I tried downloading the library source from https://github.com/bitcoin/secp256k1, and moved the folder
to my project folder. I added the include folder to the additional include directories setting in configuration
properties, but trying to compile my project resulted in an unresolved external symbol linker error, which
i assume is because the library is not actually compiling with my project.

How can I compile this library and include it in my project?


Title: Re: VS2015 - how to include secp256k1 in my project?
Post by: tzpardi on October 25, 2015, 04:33:14 PM
Hi!
Im using Visual Studio 2015 C++ and trying to include secp256k1 into my project.

I tried downloading the library source from https://github.com/bitcoin/secp256k1, and moved the folder
to my project folder. I added the include folder to the additional include directories setting in configuration
properties, but trying to compile my project resulted in an unresolved external symbol linker error, which
i assume is because the library is not actually compiling with my project.

How can I compile this library and include it in my project?


That is a generic linker error. The error message should give you information about the missing libraries. What is the content of the unresolved external symbol error?


Title: Re: VS2015 - how to include secp256k1 in my project?
Post by: Delek on October 27, 2015, 05:23:02 PM
You should include the header files but also the .c files to your project's files tree.