Search code examples
c++windowseclipseomnet++crypto++

Crypto++ with Omnet++ on Windows


Does anyone use Crypto++ with Omnet++ in Windows. I need help with linking the library and using algorithms like AES in my .cc file in order to encrypt or decrypt exchanged messages.


Solution

  • To add own libraries to an existing OMNeT++ project go to Project | Properties | OMNeT++ | Makemeke | select root or src directory | Options, then Custom | Makefrag and write the following lines:

    EXTRA_OBJS += -LD:/foo/lib -lcryptopp
    CFLAGS += -ID:/foo/include
    

    where D:/foo/lib and D:/foo/include contain libraries (*.a or *.dll) and headers of Crypto++.