Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Regarding the modification in make fille


  • Please log in to reply
2 replies to this topic

#1 sandip301288


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 22 March 2012 - 03:08 AM

I have a make file and I want to change that file for encryption purpose. When I execute a simple encryption algorithm by using crypto ++ libraray. So I have to run the command " gcc -Icrypto51 -Lcrypto51 -lcryptopp -o filename filename.cpp"
Following shows the make file

all : PIRClient

PIRClient : src/mainClient.cpp ../Common/include src/mainClient.cpp
g++ -o PIRClient -I../Common/include -L../Common/lib src/mainClient.cpp -lntl

clean :
rm -f PIRClient

Please suggest me where to change in my make file. And where to use -Icrypto51 -Lcrypto51 -lcryptopp in my make file
  • 0

#2 WingedPanther73


    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 22 March 2012 - 05:18 AM

You would need to add the items you have in sequence with the other items. your -I items should go together, your -L items should go together, your -l items should go together.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/

#3 kernelcoder


    CC Devotee

  • Expert Member
  • PipPipPipPipPipPip
  • 990 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal

Posted 15 April 2012 - 05:34 PM

If your "cryptopp" library's include directory is "usr/include/crypto51" and libraries directory is "usr/lib/crypto51", you have to refer them as follows in your make file...

DIRS_INC = -I/usr/include/crypto51
DIRS_LIB = -L/usr/lib/crypto51
LIBS = -lcryptopp

  • 0

Also tagged with one or more of these keywords: encryption

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download