Bitcoin Forum
April 24, 2024, 03:05:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: VS2015 - how to include secp256k1 in my project?  (Read 1013 times)
xnn (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 14, 2015, 07:30:26 PM
 #1

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?
1713927942
Hero Member
*
Offline Offline

Posts: 1713927942

View Profile Personal Message (Offline)

Ignore
1713927942
Reply with quote  #2

1713927942
Report to moderator
1713927942
Hero Member
*
Offline Offline

Posts: 1713927942

View Profile Personal Message (Offline)

Ignore
1713927942
Reply with quote  #2

1713927942
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713927942
Hero Member
*
Offline Offline

Posts: 1713927942

View Profile Personal Message (Offline)

Ignore
1713927942
Reply with quote  #2

1713927942
Report to moderator
1713927942
Hero Member
*
Offline Offline

Posts: 1713927942

View Profile Personal Message (Offline)

Ignore
1713927942
Reply with quote  #2

1713927942
Report to moderator
1713927942
Hero Member
*
Offline Offline

Posts: 1713927942

View Profile Personal Message (Offline)

Ignore
1713927942
Reply with quote  #2

1713927942
Report to moderator
tzpardi
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
October 25, 2015, 04:33:14 PM
 #2

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?
Delek
Full Member
***
Offline Offline

Activity: 157
Merit: 100


Salí para ver


View Profile WWW
October 27, 2015, 05:23:02 PM
 #3

You should include the header files but also the .c files to your project's files tree.

\/\/\/\/\/\/\/
-> delek.net <-
/\/\/\/\/\/\/\
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!