Thank you.  It's building that way now.

It was a bit of a pain.  I'm sure there's an easier way to do it, but in 
Eclipse, it wants each object file added separately (and I couldn't add 
them as a library), so I added a couple, saw the line format in the config 
file, and used the 'ls' command to give me a line for each file, with the 
full text of the line there so I could cut and paste it.

I tried adding files in the directory with a wildcard, but it didn't.  I 
haven't tested any actual use of the code yet, but I can use the includes 
without any problem.

Thank you!

On Friday, March 8, 2013 3:39:18 PM UTC-5, David Irvine wrote:
>
> This is a very heavily templated library that reuses much, it is best to 
> use it as a large monolithic lib and let the linker decide what it includes 
> in terms of the .o etc. I thihnk to extract differing algorithms would be 
> very difficult and end up creating a huge mess. If you want to get up and 
> running then include all the files required. So compile cryptoPP and link 
> to it and add the hear path to your compiler to be able to compile it, then 
> use what you need. 
>
> Best Regards
> David Irvine
>
>
> <http://maidsafe.net>maidsafe.net Limited is a limited liability company 
> incorporated in Scotland with number SC297540. VAT Registered 889 0608 77. 
> Registered Office: 72 Templehill, Troon, KA10 6BE. 
> Telephone Scotland: +44  *1292 317311*
>
>
>
> On Fri, Mar 8, 2013 at 7:02 PM, Hal Vaughan <[email protected]<javascript:>
> > wrote:
>
>> I don't know if I'm dealing with a total newbie problem, or if this is 
>> specific to Crypto++ or specific to Eclipse and the CDT, but I'd like to 
>> figure out how to build my project with Crypto++ included (or, prefferably, 
>> just the files I need to include).
>>
>> I'm sure if I were more experienced in C++, I'd know just where to look 
>> to figure this out.  I've been reading tutorials and code examples.  While 
>> I'm new to C++, I have done a lot of work in Perl and Java.  I can 
>> understand or work through a lot of the actual writing of code, but I'm 
>> still learning C++ syntax and dealing with issues around building a program.
>>
>> In this case, I have a very simple program with just main() and a test 
>> subroutine.  It builds and does a "Hello World" fine.  I'm using the CDT in 
>> Eclipse 4.2.1 to do this.  I'm on OS X 10.8.2.  Eclipse is, by default, 
>> using gcc to compile and the MacOS X C++ Linker.  (I'd like to use GNU 
>> tools for linking, too, just for consistency - using one set of tools, but 
>> I guess that doesn't really matter.)  Crypto++ is 5.6.2.
>>
>> Even though I know Crypto++ is complex, one reason I want to use this 
>> from the start is because I know as I get more and more advanced in C++, I 
>> won't outgrow it - I'll find more and more that I can use in it.
>>
>> I imported Crypto++ into Eclipse as a project with a makefile and it 
>> builds successfully on its own.
>>
>> The short of it is that I want to use Blowfish (which I've used before 
>> under Java) and, later, the DEFLATE/INFLATE features of Crypto++.
>>
>> I've been doing a lot of searching on this, but I'm still confused.  I 
>> thought I needed to add all the .o files to my current project by adding 
>> them in the Linker->Miscellaneous section under "Other Objects," and tried 
>> that, but then I still needed the header files, so I tried adding the .h 
>> files.
>>
>> The problem was if I added blowfish.h, then I had to add more headers - 
>> and no matter what I did, it needed several dozen header files added.  It 
>> seems like I can add either all the files (excluding testing, validating, 
>> and benchmarking files) or none.  I can't just add a few.  (This is using 
>> .o and .h files from the Crypto++ project.)
>>
>> Then I found this example (
>> https://groups.google.com/forum/?fromgroups=#!topic/cryptopp-users/QEkVYpNuj84).
>>  
>>  It's specifically for blowfish and uses a total of 5 includes from 
>> Crypto++:
>>
>> #include "crypto521/cryptlib.h"
>> #include "crypto521/modes.h"
>> #include "crypto521/blowfish.h"
>> #include "crypto521/files.h"
>> #include "crypto521/hex.h"
>>
>> I then tried adding a directory for Crypto++ within my project and 
>> copying over the .cpp and .h files listed above to that directory and using 
>> just those 5 includes.  I didn't add any code to my program - just added 
>> the includes like shown above.  I ran into the same thing.  One include 
>> required more and more and more.  I kept having problems with each header 
>> or .cpp file referencing symbols that it couldn't find or needing a .h file 
>> it couldn't find until I added the include statement.  I had to add all the 
>> Crypto++ .h and .cpp files (again, excluding the testing, validating, and 
>> benchmarking files).
>>
>> So I've tried using .o files that are in another project and have been 
>> built.  I've also tried using the source files and headers within my 
>> project.  In both cases, I need to add more and more files.
>>
>> With all the .h and .cpp files from Crypto++ in the directory within my 
>> project, I always run into an error in salsa.  I figure that is because I'm 
>> not making it with the Crypto++ makefile, so something is being left out.
>>
>> My goal, for now, is to be able to build my program using only what is 
>> needed for using blowfish from Crypto++.  From there, I'm used to 
>> namespaces and objects and classes and there are many examples to figure 
>> out how to use blowfish.
>>
>> Is this an easy newbie problem because I just don't know the rules yet 
>> about building?  If it's possible, I'd like to know what I need to be 
>> searching for or reading so I have a better understanding of how to work 
>> through things like this on my own.
>>
>> And, of course, any immediate help is also greatly appreciated.
>>
>>  -- 
>> -- 
>> You received this message because you are subscribed to the "Crypto++ 
>> Users" Google Group.
>> To unsubscribe, send an email to 
>> [email protected]<javascript:>
>> .
>> More information about Crypto++ and this group is available at 
>> http://www.cryptopp.com.
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Crypto++ Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to